[ 
http://jira.codehaus.org/browse/MGWT-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242297#action_242297
 ] 

Chuck C commented on MGWT-205:
------------------------------

This is issue seems to be caused by the url-encoded classpath elements into the 
maven repository. If these are converted to strings, then yo uget past this. 
With GWT 2.1 and gwt-maven-plugin 2.1, I then get (running from dos prompt)

C:\Work\foodies-gwt>C:\Development\Java\6u22\jre\bin\java -Xmx512m -classpath 
"C:\Work\foodies-gwt\src\main\java;C:\Work\foodies-gwt\target\generated-sources\gwt;C:\Work\foodies-gwt\src\main\resources;C:\Work\foodies-gwt\target\gwt-1.0-SNAPSHOT\WEB-INF\classes;C:\Work\foodies-gwt\src\test\java;C:\Work\foodies-gwt\src\test\resources;C:\Work\foodies-gwt\target\test-classes;C:\Users\Chuck
 
C\.m2\repository\com\google\gwt\gwt-user\2.1.0\gwt-user-2.1.0.jar;C:\Users\Chuck
 
C\.m2\repository\com\google\gwt\gwt-servlet\2.1.0\gwt-servlet-2.1.0.jar;C:\Users\Chuck
 C\.m2\repository\junit\junit\4.7\junit-4.7.jar;C:\Users\Chuck 
C\.m2\repository\org\codehaus\mojo\gwt-maven-plugin\2.1.0\gwt-maven-plugin-2.1.0.jar;C:\Users\Chuck
 
C\.m2\repository\org\apache\maven\surefire\surefire-api\2.4.3\surefire-api-2.4.3.jar"
 "-Dgwt.args=-out target/www-test -runStyle Manual:1 " 
-Dsurefire.reports=C:\Work\foodies-gwt\target\surefire-reports 
org.codehaus.mojo.gwt.test.MavenTestRunner 
com.foodieswholesale.client.GwtTestgwtjava.lang.NoClassDefFoundError: 
com/google/gwt/dev/cfg/Condition
        at 
com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:355)
        at 
com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java:272)
        at 
com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase.java:290)
        at com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336)
        at junit.framework.TestSuite.createTest(TestSuite.java:63)
        at junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
        at junit.framework.TestSuite.<init>(TestSuite.java:146)
        at junit.framework.TestSuite.<init>(TestSuite.java:175)
        at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:117)
        at junit.textui.TestRunner.start(TestRunner.java:179)
        at 
org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:63)
Caused by: java.lang.ClassNotFoundException: com.google.gwt.dev.cfg.Condition
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 11 more
com/google/gwt/dev/cfg/Condition

> java.lang.NoClassDefFoundError: org/codehaus/mojo/gwt/MavenTestRunner
> ---------------------------------------------------------------------
>
>                 Key: MGWT-205
>                 URL: http://jira.codehaus.org/browse/MGWT-205
>             Project: Maven 2.x GWT Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Windows XP, jdk1.6.0_18, GWT 2.0.3
>            Reporter: Sam Gardner-Dell
>
> Similar issue to MGWT-24.  I believe this is caused by the classpath with 
> which it is executing the MavenTestRunner, the path has been encoded using 
> %20 entities which are not being recognised correctly. Copied from command 
> being executed (as output on eclipse console):
> "C:\Documents%20and%20Settings\gardners\.m2\repository\org\codehaus\mojo\gwt-maven-plugin\1.2\gwt-maven-plugin-1.2.jar";"C:\Documents%20and%20Settings\gardners\.m2\repository\org\apache\maven\surefire\surefire-api\2.4.3\surefire-api-2.4.3.jar"
> Since moving my local repository elsewhere (not containing spaces within the 
> path) this has started working.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to