GWT Designer deployment error - gwt

I am trying to deploy my first GWT application, but I am getting the error below.
I am using jre6, GWT Designer (with GWT DSK 2.5.0), and I have already deleted the gwt-unitCache folder as suggested here:
https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/e3DoVrI6V70
Designer error occurred.
Select Details >> for more information.
See the Error Log for more information.
Reason: Parse error or internal Designer error.
Plug-in Provider: Google
Plug-in Name:
Plug-in ID: org.eclipse
java.lang.NoClassDefFoundError: org/eclipse/jdt/launching/IJavaLaunchConfigurationConstants
at com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.getGWTProjectClasspath(DeployModuleAction.java:364)
at
com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.createBuildScript(DeployModuleAction.java:150)
at
com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.access$1(DeployModuleAction.java:131)
at
com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:103)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Full stack trace (to see full context):
java.lang.reflect.InvocationTargetException
at com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:114)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jdt/launching/IJavaLaunchConfigurationConstants
at com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.getGWTProjectClasspath(DeployModuleAction.java:364)
at com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.createBuildScript(DeployModuleAction.java:150)
at com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction.access$1(DeployModuleAction.java:131)
at com.google.gdt.eclipse.designer.actions.deploy.DeployModuleAction$1.run(DeployModuleAction.java:103)
... 1 more

Related

Eclipse "Failed to create the part's controls" InlinedAnnotationSupport

I'm using MyEclipse and when I open a Java class that's not in a project but in a library somewhere, I get a Failed to create the part's controls error message, and this stack trace:
Abbreviated trace:
java.lang.NullPointerException
at org.eclipse.jface.text.source.inlined.InlinedAnnotationSupport$VisibleLines.install(InlinedAnnotationSupport.java:261)
at org.eclipse.jface.text.source.inlined.InlinedAnnotationSupport$VisibleLines.<init>(InlinedAnnotationSupport.java:146)
at org.eclipse.jface.text.source.inlined.InlinedAnnotationSupport.install(InlinedAnnotationSupport.java:363)
at org.eclipse.jface.text.source.SourceViewer.ensureCodeMiningManagerInstalled(SourceViewer.java:1295)
at org.eclipse.jface.text.source.SourceViewer.setCodeMiningAnnotationPainter(SourceViewer.java:1320)
at org.eclipse.ui.texteditor.SourceViewerDecorationSupport.showAnnotations(SourceViewerDecorationSupport.java:830)
at org.eclipse.ui.texteditor.SourceViewerDecorationSupport.updateTextDecorations(SourceViewerDecorationSupport.java:301)
at org.eclipse.ui.texteditor.SourceViewerDecorationSupport.install(SourceViewerDecorationSupport.java:269)
Full picture
The only thing I've added to this is Lombok annotations.

Multiple used archives for database connection causing a CoreException in JPA Tools in Eclipse

I'm using EclipseLink to create tables from entities in Eclipse. Therefore I do a right click on my project --> JPA Tools --> Generate Tables from Entities --> Database.
This results in the an error. The log description is attached underneath.
The trace stack explains, that the referenced archive hasn't been found. Actually I'm using two archives and somehow eclipse, eclipselink or the database connection handler is doing something wrong.
I'm using PostGIS and PostgreSQL. The archives are retrieved through maven. The names are postgis-jdbc-2.2.1.jar and postgresql-42.0.0.jar. They are both present and working. Establishing a connection is also possible through the JPA properties tab of my project in eclipse.
My current workaround is to use just PostgreSQL driver (org.postgresql.Driver) without the additional archive instead of the PostGIS driver (org.postgis.DriverWrapper / DriverWrapperAutoProbe) with both archives.
Did anyone encounter this problem before? Does anyone have a solution?
!ENTRY org.eclipse.jpt.jpa.eclipselink.ui 4 0 2017-03-26 13:36:22.256
!MESSAGE An error occured during launch
!STACK 0
java.lang.RuntimeException: An error occured during launch
at org.eclipse.jpt.common.core.internal.gen.AbstractJptGenerator.saveAndLaunchConfig(AbstractJptGenerator.java:315)
at org.eclipse.jpt.common.core.internal.gen.AbstractJptGenerator.generate(AbstractJptGenerator.java:120)
at org.eclipse.jpt.common.ui.gen.AbstractJptGenerateJob.generate(AbstractJptGenerateJob.java:136)
at org.eclipse.jpt.common.ui.gen.AbstractJptGenerateJob.runInWorkspace(AbstractJptGenerateJob.java:73)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.core.runtime.CoreException: The archive: C:/Users/mmce/.m2/repository/org/postgresql/postgresql/42.0.0/postgresql-42.0.0.jar;C:/Users/mmce/.m2/repository/net/postgis/postgis-jdbc/2.2.1/postgis-jdbc-2.2.1.jar which is referenced by the classpath, does not exist.
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1408)
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:1393)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:957)
at org.eclipse.m2e.jdt.internal.launch.MavenRuntimeClasspathProvider.addStandardClasspathEntries(MavenRuntimeClasspathProvider.java:143)
at org.eclipse.m2e.jdt.internal.launch.MavenRuntimeClasspathProvider.resolveClasspath0(MavenRuntimeClasspathProvider.java:135)
at org.eclipse.m2e.jdt.internal.launch.MavenRuntimeClasspathProvider$1.call(MavenRuntimeClasspathProvider.java:114)
at org.eclipse.m2e.jdt.internal.launch.MavenRuntimeClasspathProvider$1.call(MavenRuntimeClasspathProvider.java:1)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1355)
at org.eclipse.m2e.jdt.internal.launch.MavenRuntimeClasspathProvider.resolveClasspath(MavenRuntimeClasspathProvider.java:111)
at org.eclipse.jdt.internal.launching.RuntimeClasspathProvider.resolveClasspath(RuntimeClasspathProvider.java:65)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:1260)
at org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getClasspath(AbstractJavaLaunchConfigurationDelegate.java:412)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:72)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
at org.eclipse.jpt.common.core.internal.gen.AbstractJptGenerator.saveAndLaunchConfig(AbstractJptGenerator.java:312)
... 5 more

javax.servlet.ServletException: PWC1391: Servlet.init() for servlet <project>.webservice.ApplicationConfig threw exception

What could be the cause for this error while running my Java EE 6 app from embedded container using Eclipse?
HTTP Status 500 -
type Exception report
message
description: The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: PWC1391: Servlet.init() for servlet <project>.webservice.ApplicationConfig threw exception
root cause
com.sun.jersey.spi.inject.Errors$ErrorMessagesException
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2.2 logs.
Edit: Basically since I ran it successfully, I upgraded eclipse and made some changes in project (refactor/renaming variables) and svn repository setup.
Have you tried the suggestions Google produces when you search for PWC1391? Namely resolving potential version conflicts with the Jersey library (i.e. removing it from project).
Finally figured out that there were some libraries missing...including Glassfish 3.1.2 being the major one from "Web"'s "Java Build Path > Libraries".

java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()

I am getting this error java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()
at the runtime in eclipse. However, eclipse shows the method on doing intelligence search, but at runtime it fails to identify it.
I am using the latest log4j1.2.16 jar and it is added in the classpath.
Any suggestions?

NoSuchMethod exception thrown in GWT

I'm starting to get my feet wet in the latest Google Web Toolkit using the Eclipse plugin on OS X 10.5.8. So far I've been able to get the client up and running, which is great.
The server, though, is a different matter. I'm trying to link to a .jar file that has some classes I want to use in a server ServiceImpl class, but it seems to have glommed onto a previous iteration of the .jar - I've added a method, rebuilt the jar, removed the jar from the libraries tab on the GWT project's build path (as well as on the exports) and reincluded the jar. No luck - I'm still getting:
[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract org.gwtapplication.client.LWDocument org.gwtapplication.client.DocumentService.getDocument()' threw an unexpected exception: java.lang.NoSuchMethodError: org.externalmodel.MyReallyValidClass.toSomething()Ljava/lang/String;
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581)
...
Caused by: java.lang.NoSuchMethodError: org.externalmodel.MyReallyValidClass.toSomething()Ljava/lang/String;
at org.application.server.DocumentServiceImpl.getDocument(DocumentServiceImpl.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Eclipse's code sense has no problems resolving the MyReallyValidClass.toSomething() call, and there are no errors with other calls into the externalmodel classes. Any clue where I should be looking?
In your DocumentServiceImpl class, adding the following log:
System.out.println(Thread.currentThread().getContextClassLoader().getResource("org/externalmodel/MyReallyValidClass.class");
should tell you where this jar is being picked up.