Friday, November 26, 2010

Re: GWT 2.1.0 maven asks for com.google.gwt:gwt-dev:jar:windows:2.1.0??

Same (or similar) problem here...(except going from gwt 1.7.1 to
2.1.0). Using the 2.1.0 version of the plugin.

I include the gwt-dev jar - and get warnings about doing that (things
seem to work except for gwt tests).

If i attempt to exclude gwt-dev and make it's scope test-compile (and
make a bunch of maven-compiler-plugin excludes), and have it explode
because some of my classes (the gwt-dev jar dependent ones) haven't
been compiled in the gxt:compile phase.

i also have the problem where running gwt:test or integration-test
asks me to load the browser (i thought this defaulted to headless)

On Nov 9, 3:44 am, Musicman75 <stephan.beu...@googlemail.com> wrote:
> I run into the same problem.
> After changing from 2.0.4 to GWT 2.1.0 I can't execute the tests
> anymore.
>
> The tests fail with error:
>
>  --- gwt-maven-plugin:2.1.0:test (gwtcompile) @ dashboardClient ---
> [ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/
> Condition
> [ERROR]         at
> com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:
> 355)
> [ERROR]         at
> com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java:
> 272)
> [ERROR]         at
> com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase.java:
> 290)
> [ERROR]         at
> com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336)
> [ERROR]         at junit.framework.TestSuite.createTest(TestSuite.java:63)
> [ERROR]         at junit.framework.TestSuite.addTestMethod(TestSuite.java:
> 283)
> [ERROR]         at junit.framework.TestSuite.<init>(TestSuite.java:146)
> [ERROR]         at junit.framework.TestSuite.<init>(TestSuite.java:175)
> [ERROR]         at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:
> 117)
> [ERROR]         at junit.textui.TestRunner.start(TestRunner.java:179)
> [ERROR]         at
> org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:
> 63)
> [ERROR] Caused by: java.lang.ClassNotFoundException:
> com.google.gwt.dev.cfg.Condition
> [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> [ERROR]         at java.security.AccessController.doPrivileged(Native Method)
> [ERROR]         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> [ERROR]         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
> 301)
> [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> [ERROR]         ... 11 more
> [ERROR] com/google/gwt/dev/cfg/Condition
>
> On 7 Nov., 16:10, Jeff Larsen <larse...@gmail.com> wrote:
>
> > I get the same error.
>
> > I tried added gwt-dev 2.1.0 as a test dependency, but then it wants me
> > go to URLs in a browser... I just want it to run my test suite.
>
> > On Nov 6, 8:08 pm, Yaakov <yaakov.chai...@gmail.com> wrote:
>
> > > Well, I tried that. It now fails with this in the testing phase:
>
> > > *****************
> > > [INFO] [gwt:test {execution: test}]
> > > [ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/
> > > Condition
> > > [ERROR]         at
> > > com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:
> > > 355)
> > > [ERROR]         at
> > > com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java:
> > > 272)
> > > [ERROR]         at
> > > com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase. java:
> > > 290)
> > > [ERROR]         at
> > > com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336)
> > > [ERROR]         at junit.framework.TestSuite.createTest(TestSuite.java:
> > > 63)
> > > [ERROR]         at
> > > junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
> > > [ERROR]         at junit.framework.TestSuite.<init>(TestSuite.java:
> > > 146)
> > > [ERROR]         at junit.framework.TestSuite.<init>(TestSuite.java:
> > > 175)
> > > [ERROR]         at
> > > junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:117)
> > > [ERROR]         at junit.textui.TestRunner.start(TestRunner.java:179)
> > > [ERROR]         at
> > > org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:
> > > 63)
> > > [ERROR] Caused by: java.lang.ClassNotFoundException:
> > > com.google.gwt.dev.cfg.Condition
> > > [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:
> > > 202)
> > > [ERROR]         at java.security.AccessController.doPrivileged(Native
> > > Method)
> > > [ERROR]         at
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > > [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:
> > > 307)
> > > [ERROR]         at sun.misc.Launcher
> > > $AppClassLoader.loadClass(Launcher.java:301)
> > > [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:
> > > 248)
> > > [ERROR]         ... 11 more
> > > [ERROR] com/google/gwt/dev/cfg/Condition
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > > ------------------------------------------------------------------------
> > > [INFO] There was test failures.
> > > *****************
>
> > > On Nov 5, 6:49 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
>
> > > > On 5 nov, 22:01, Yaakov Chaikin <yaakov.chai...@gmail.com> wrote:
>
> > > > > Never mind... It was the version of the gwt-maven-plugin... However,
> > > > > now, I can't get it to install. What version of the gwt-maven-plugin
> > > > > am I supposed to use with the latest 2.1.0 release of GWT and which
> > > > > repository does it reside in?
>
> > > > You can use either the 1.3.2.google version from thehttp://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven/
> > > > repository, or the 2.1.0 version from Maven Central (released today)

--
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment