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

On Feb 21, 4:20 pm, Jason Sheedy <[email protected]> wrote:
> 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
>
> On Feb 15, 6:34 pm, "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.

Reply via email to