Updating the problem to GWT 2.3.0

I am completely confused by the GWT problem and have no idea how to interpret the GWT log or how to fix the problem. I am working on a pretty trivial template. I upgraded to GWT 2.3.0 and now I have the following problem when compiling a module using maven-gwt-plugin:

[INFO] --- gwt-maven-plugin:2.3.0:compile (default) @ gaewebtemplate --- [INFO] auto discovered modules [stuff.gaegwttemplate.Main, stuff.gaegwttemplate.security.SecurityRequest] [INFO] Loading inherited module 'com.google.gwt.activity.Activity' [INFO] Loading inherited module 'com.google.gwt.place.Place' [INFO] Loading inherited module 'com.google.gwt.user.User' [INFO] Loading inherited module 'com.google.gwt.animation.Animation' [INFO] Loading inherited module 'com.google.gwt.core.Core' [INFO] Loading inherited module 'com.google.gwt.core.CrossSiteIframeLinker' [INFO] [ERROR] Unable to load class 'com.google.gwt.core.linker.DirectInstallLinker' [INFO] java.lang.ClassNotFoundException: com.google.gwt.core.linker.DirectInstallLinker 

<Deleted huge stack trace>

 [INFO] [ERROR] Failure while parsing XML [INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) 

<Deleted huge stack trace>

 [INFO] [ERROR] Unexpected error while processing XML [INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) 

Then two repeated traces and critical error messages are repeated, creating page after page (as far as I can tell) of the completely useless log information.

Does anyone know what could be here? Any idea what uses the "google strategy" here :).

+4
source share
3 answers

Gunnar

I had a similar problem. If you are trying to use the GWT SDK newer than the maven plugin, you should also point the maven plugin to this SDK, for example:

http://mojo.codehaus.org/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html

Otherwise, I believe that the maven plugin will still use the version of GWT that matches it (if you want to remove your GWT banners from your maven repository, you can confirm this by seeing that it downloads an older version.)

+10
source

The DirectInstallLinker class DirectInstallLinker not present in GWT 2.3, but I see it in trunk - are you sure you are using 2.3.0? To get this error, it seems likely that you have at least one copy of something newer than 2.3.0 in your classpath.

GWT 2.3.0 was released on May 2, and DirectInstallLinker did not seem to be added to the source until May 6.

The GWT compiler uses the TreeLogger class built into GWT as a way for the compiler and generators to embed debug / error / information messages.

+1
source

I got the same error when upgrading from gwt 2.3 to gwt 2.4. I was stupid and updated the version according to the gwt-user dependency, but not the gwt-dev dependency. So make sure you are not stupid either.

0
source

All Articles