migrate GWT 2.1.1 to 2.2 error

1914 views
Skip to first unread message

Brice Beaumesnil

unread,
Feb 15, 2011, 1:46:06 AM2/15/11
to google-we...@googlegroups.com
Hello, i just try GWT 2.2 on my project, i just change my POM file to use version 2.2 and when i try to compile i have this error :

Loading inherited module 'com.google.gwt.user.User'
[INFO]    Loading inherited module 'com.google.gwt.user.RemoteService'
[INFO]       [ERROR] Unexpected error while processing XML
[INFO] java.lang.NoClassDefFoundError: com/google/gwt/core/ext/GeneratorExt
[INFO]     at java.lang.ClassLoader.defineClass1(Native Method)
[INFO]     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
[INFO]     at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
[INFO]     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[INFO]     at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[INFO]     at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[INFO]     at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[INFO]     at java.security.AccessController.doPrivileged(Native Method)
[INFO]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[INFO]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[INFO]     at com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(ModuleDefSchema.java:778)
[INFO]     at com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)
[INFO]     at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:221)
[INFO]     at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectiveParser.java:274)
...

Idid'nt have any problem with older version of GWT.

Alex Nederlof

unread,
Feb 15, 2011, 5:46:33 AM2/15/11
to google-we...@googlegroups.com
I Got the same problem. I generated a new app with the new webAppCreator and it gives the same error. 


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

F. Lancer

unread,
Feb 15, 2011, 3:34:09 AM2/15/11
to Google Web Toolkit
Hi, Brice.

Try to add 'gwt-dev-2.2.0.jar' to your project and rebuild.

pom.xml:
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>2.2.0</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

You will have "[WARNING] Don't declare gwt-dev as a project
dependency. This may introduce complex dependency conflicts" but you
project will be built.Probably :)

Regards,

Alex.

On Feb 15, 8:46 am, Brice Beaumesnil <skalim...@gmail.com> wrote:
> Hello, i just try GWT 2.2 on my project, i just change my POM file to use
> version 2.2 and when i try to compile i have this error :
>
> Loading inherited module 'com.google.gwt.user.User'
> [INFO]    Loading inherited module 'com.google.gwt.user.RemoteService'
> [INFO]       [ERROR] Unexpected error while processing XML
> [INFO] java.lang.NoClassDefFoundError: com/google/gwt/core/ext/GeneratorExt
> [INFO]     at java.lang.ClassLoader.defineClass1(Native Method)
> [INFO]     at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> [INFO]     at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> [INFO]     at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> [INFO]     at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
> [INFO]     at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> [INFO]     at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> [INFO]     at java.security.AccessController.doPrivileged(Native Method)
> [INFO]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> [INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> [INFO]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> [INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> [INFO]     at
> com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(ModuleDefS­chema.java:778)
> [INFO]     at
> com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)
> [INFO]     at
> com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:22­1)
> [INFO]     at
> com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(ReflectivePa­rser.java:274)

skalimer0

unread,
Feb 15, 2011, 7:01:24 AM2/15/11
to google-we...@googlegroups.com
OK, thanks

i change <scope>test</scope> to <scope>compile</scope> for gwt-dev dependency and it's compile without error.

jons...@gmail.com

unread,
Feb 15, 2011, 8:04:40 AM2/15/11
to google-we...@googlegroups.com
Another way to get this is mixing GWT Designer releases....

Uninstall:
GWT Plugin
GWT Designer
WindowBuilder

Then install:
GWT Plugin

That will clear out pieces of GWT Designer 8.1.1 that are mixed into
the GWT 2.2 plugin release.

On Mon, Feb 14, 2011 at 7:38 AM, WindowBuilder Support
<wb-suppo...@google.com> wrote:
> GWT Designer v8.1.1 does not support GWT 2.2.
> You need to uninstall v8.1.1 and use the version of GWT Designer that was
> provided with GWT/GPE 2.2.
> -----Original Message-----
> From: jons...@gmail.com
> Date: Mon, 14 Feb 2011 03:38:18 +0000
> To: "wb-suppo...@google.com" <wb-suppo...@google.com>
> Subject: GWT design broken on GWT 2.2 SDK
>>Submitted by: jons...@gmail.com <Jon Smirl>
>>
>>The generater attribute is in the international gwt.xml line on line 75.
>>
>>I can't use designer on any Views. Backing off to 2.1 SDK fixes.
>>I just updated to the latest GWT design via Eclipse.
>


--
Jon Smirl
jons...@gmail.com

skalimer0

unread,
Feb 15, 2011, 10:02:36 AM2/15/11
to google-we...@googlegroups.com
I install new Eclipse 3.6 with new GWT 2.2 import my CVS project... and when i try to open an Composite class of my projet in the new GWT Designer 2.2 i have this error :

Stack trace:

java.lang.NullPointerException
at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.getSharedClassLoader(HostedModeSupport.java:184)
at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createClassLoaders(HostedModeSupport.java:92)
at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.<init>(HostedModeSupport.java:62)
at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create(HostedModeSupportFactory.java:22)
at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedModeSupport(GwtState.java:1195)
at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0(GwtState.java:243)
at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(GwtState.java:219)
at com.google.gdt.eclipse.designer.parser.ParseFactory.getClassLoader(ParseFactory.java:390)
at org.eclipse.wb.internal.core.parser.AbstractParseFactory.initializeClassLoader(AbstractParseFactory.java:732)
at com.google.gdt.eclipse.designer.parser.ParseFactory.getRootContext(ParseFactory.java:92)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:1180)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:244)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:240)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:463)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:455)
at org.eclipse.wb.internal.core.editor.DesignPage$7$1.run(DesignPage.java:388)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at org.eclipse.wb.internal.core.editor.DesignPage$7.run(DesignPage.java:385)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:404)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:354)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:331)
at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:89)
at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$2.widgetSelected(ExceptionComposite.java:109)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

Full context stack trace:

java.lang.NullPointerException
at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.getSharedClassLoader(HostedModeSupport.java:184)
at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createClassLoaders(HostedModeSupport.java:92)
at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.<init>(HostedModeSupport.java:62)
at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create(HostedModeSupportFactory.java:22)
at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedModeSupport(GwtState.java:1195)
at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0(GwtState.java:243)
at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(GwtState.java:219)
at com.google.gdt.eclipse.designer.parser.ParseFactory.getClassLoader(ParseFactory.java:390)
at org.eclipse.wb.internal.core.parser.AbstractParseFactory.initializeClassLoader(AbstractParseFactory.java:732)
at com.google.gdt.eclipse.designer.parser.ParseFactory.getRootContext(ParseFactory.java:92)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.prepareParseContext(JavaInfoParser.java:1180)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:244)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(JavaInfoParser.java:240)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(JavaInfoParser.java:1)
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:153)
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(JavaInfoParser.java:151)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:463)
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:455)
at org.eclipse.wb.internal.core.editor.DesignPage$7$1.run(DesignPage.java:388)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at org.eclipse.wb.internal.core.editor.DesignPage$7.run(DesignPage.java:385)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:404)
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:354)
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at org.eclipse.wb.internal.core.editor.DesignPage.refreshGEF(DesignPage.java:331)
at org.eclipse.wb.internal.core.editor.actions.RefreshAction.run(RefreshAction.java:46)
at org.eclipse.wb.internal.core.editor.actions.DesignPageAction.run(DesignPageAction.java:34)
at org.eclipse.wb.internal.core.editor.errors.JavaExceptionComposite.doRefresh(JavaExceptionComposite.java:89)
at org.eclipse.wb.internal.core.editor.errors.ExceptionComposite$2.widgetSelected(ExceptionComposite.java:109)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

Ernesto Reig

unread,
Feb 15, 2011, 10:40:52 AM2/15/11
to google-we...@googlegroups.com
Same here.
The error happens in all Uibinder templates even if you create a new one. But when you set up a new GWT project, and create a new UiBinder template, it works. I thought that there was some problem in GWT projects with 2.1 version migrating to 2.2, but the thing is that it gives the same error in the Expenses app that comes with the SDK 2.2.0.
If find a solution, report please.


Carlo Alberto Degli Atti

unread,
Feb 16, 2011, 9:01:43 AM2/16/11
to Google Web Toolkit
Maybe I'm wrong but I added this dependency to my pom to avoid the
compilation problem you were talking about...
of course it did work as expected (using maven)

*BUT* it caused a very strange behavior in Eclipse... at the beginning
I didn't understand the cause (because I had many other problems
related to the new gwt 2.2, so I spent some time around)...

if I add the gwt-dev dependency, Eclipse claims that the GWT SDK is
missing (but that's not true); and I wasn't able to fix it anyway...

Magically when I removed the gwt-dev.jar from the classpath it started
again to work... So, I removed that dependency from the pom.xml...

(and now I've to understand why I don't have no more that compilation
problem.. but this is another story!)

Hope this can help someone!

CA

Carlo Alberto Degli Atti

unread,
Feb 16, 2011, 9:59:16 AM2/16/11
to google-we...@googlegroups.com
I'm still investigating... but:

1) if I remove the gwt-dev dependency, I can start the gwt app from Eclipse *BUT* if I try to compile using maven (ie mvn gwt:compile) I get "java.lang.NoClassDefFoundError: com/google/gwt/core/ext/GeneratorExt",

2) if I add the gwt-dev dependency, I can do "mvn install" and "mvn gwt:run" *BUT* I have the "GWT SDK is missing" error inside Eclipse (as described in my previous post)...

ANY IDEA!?!?

skalimer0

unread,
Feb 16, 2011, 10:15:43 AM2/16/11
to google-we...@googlegroups.com
write dependency of gwt-dev in gwt-maven section and not with all dependencies.

Carlo Alberto Degli Atti

unread,
Feb 16, 2011, 10:40:53 AM2/16/11
to google-we...@googlegroups.com
yes it works if I run "mvn gwt:compile" from within the module (I have a multi-module maven project), but if I run "mvn install" from the parent root I still have that error.

Philippe Beaudoin

unread,
Feb 17, 2011, 5:24:33 AM2/17/11
to google-we...@googlegroups.com
I am running into the same problem. I wonder if it could be related to the fact that gwt-maven-plugin is version 2.1.0-1 and needs to be updated for 2.2.0?

Philippe Beaudoin

unread,
Feb 17, 2011, 5:48:04 AM2/17/11
to google-we...@googlegroups.com
Also, the proposed workaround of adding a dependency on gwt-dev does not work for me. mvn install gives the following error:

[INFO]       [ERROR]  Internal compiler error
[INFO] java.lang.NoClassDefFoundError: com/google/inject/assistedinject/FactoryModuleBuilder
[INFO]  at com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGeneratorModule.java:74)
[INFO]  at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
[INFO]  at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
[INFO]  at com.google.inject.spi.Elements.getElements(Elements.java:101)
[INFO]  at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:132)
[INFO]  at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
[INFO]  at com.google.inject.Guice.createInjector(Guice.java:95)
[INFO]  at com.google.inject.Guice.createInjector(Guice.java:72)
[INFO]  at com.google.inject.Guice.createInjector(Guice.java:62)
[INFO]  at com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:66)
[INFO]  at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
[INFO]  at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
[INFO]  at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
[INFO]  at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
[INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
[INFO]  at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
[INFO]  at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
[INFO]  at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
[INFO]  at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
[INFO]  at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
[INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:517)
[INFO]  at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:215)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:187)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
[INFO]  at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO]  at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:166)
[INFO] Caused by: java.lang.ClassNotFoundException: com.google.inject.assistedinject.FactoryModuleBuilder
[INFO]  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[INFO]  at java.security.AccessController.doPrivileged(Native Method)
[INFO]  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[INFO]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[INFO]  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[INFO]  ... 38 more

Thomas Broyer

unread,
Feb 17, 2011, 6:02:05 AM2/17/11
to google-we...@googlegroups.com
FYI, I tried 2.2-rc1, 2.2.0 and a 2.3-SNAPSHOT with gwt-maven-plugin 2.1.0-1 with no problem. Note that I only use the gwt:compile goal of the plugin, and never call it directly (always through "mvn package" or "mvn install" on my "root" module; the goal is attached to the prepare-package phase)

Thomas Broyer

unread,
Feb 17, 2011, 6:06:00 AM2/17/11
to google-we...@googlegroups.com


On Thursday, February 17, 2011 11:48:04 AM UTC+1, Philippe Beaudoin wrote:
Also, the proposed workaround of adding a dependency on gwt-dev does not work for me. mvn install gives the following error:

[INFO]       [ERROR]  Internal compiler error
[INFO] java.lang.NoClassDefFoundError: com/google/inject/assistedinject/FactoryModuleBuilder
[INFO]  at com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGeneratorModule.java:74)

Nothing to do with GWT, AFAICT: you're missing the guice-assistedinject dependency. 

Philippe Beaudoin

unread,
Feb 17, 2011, 7:15:40 AM2/17/11
to google-we...@googlegroups.com
You're right, thanks! I don't know why I now have a dependency on assistedinject, but adding it worked.

Since I did not really like the workaround of adding a dependency on gwt-dev, I recompiled the gwt-maven-plugin to depend on gwt-2.2. I'm sure the gwt-maven-plugin guys will publish v 2.2.0 soon but, in the meantime, you can get it from gwt-platform maven repo:

    <pluginRepositories>
        <pluginRepository>
            <id>gwtplatform.plugin</id>
            <name>Gwtplatform custom plugin epository</name>
            <url>http://maven.gwt-platform.googlecode.com/hg/</url>
            <layout>default</layout>
        </pluginRepository>
    </pluginRepositories>

  <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>gwt-maven-plugin</artifactId>
      <version>2.2.0</version>
  </plugin>

Jason Sheedy

unread,
Feb 21, 2011, 1:20:09 AM2/21/11
to Google Web Toolkit
Hi Alex,
Just to confirm ... I had the same problem and your suggested fix to
add gwt-dev to the pom fixed it for me.

Cheers,

Jason

Jason Sheedy

unread,
Feb 24, 2011, 7:41:14 PM2/24/11
to Google Web Toolkit
It appears this is not really a workable solution. After adding a
dependency to another GWT module in my pom I started getting the
following error:

java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference

Apparently this is caused quote: "when there are multiple versions of
the JDT
CompilerOptions class on the classpath, one of which comes from
gwt-dev.jar: org/eclipse/jdt/internal/compiler/impl/
CompilerOptions.class"

I'm still looking for a solution to this problem if anyone has any
other ideas.

Cheers,

Jason

David Chandler

unread,
Feb 25, 2011, 11:37:21 AM2/25/11
to google-we...@googlegroups.com, Jason Sheedy
See 

http://groups.google.com/group/google-web-toolkit/msg/3b945fe28bbea3b8

To resolve the GWT Designer error, you can either install the latest GWT Designer from the beta channel as described in Eric's message above or manually copy the gwt-dev jar as I described.

/dmc

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools
Reply all
Reply to author
Forward
0 new messages