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 On Feb 15, 9:34 am, "F. Lancer" <[email protected]> wrote: > 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 <[email protected]> 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) > > ... > > > Idid'nt have any problem with older version of GWT. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
