[
http://jira.codehaus.org/browse/MGWT-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=173326#action_173326
]
Colin Alworth commented on MGWT-35:
-----------------------------------
I am seeing issues with running the gwt:test goal on windows, and getting this
same error. Also using XP.
I can report this as a separate issue if you like, but the exception thrown is
the same. As far as I can break it down, TestMojo.getClassPathElementFor is
using a URL object, which unnecessarily escapes spaces in strings, and forgets
to remove a leading slash in the path. As such, while the GWT jar is passed as
C:\Documents and
Settings\username\.m2\repository\com\google\gwt\gwt-user\1.6.4\gwt-user-1.6.4.jar
the gwt-maven-plugin is passed as
/C:/Documents%20and%20Settings/calworth/.m2/repository/org/codehaus/mojo/gwt-maven-plugin/1.1-SNAPSHOT/gwt-maven-plugin-1.1-SNAPSHOT.jar
Windows borks on this - I don't know enough about building maven plugins to say
for certain, but would it be possible to create the paths for both jars in the
same way that the project roots are obtained?
> java.lang.ClassNotFoundException on windows xp and maven repo in default
> location
> ---------------------------------------------------------------------------------
>
> Key: MGWT-35
> URL: http://jira.codehaus.org/browse/MGWT-35
> Project: Maven 2.x GWT Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: mvn -v
> Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400)
> Java version: 1.6.0_11
> Java home: f:\devtools\jdk1.6.0_11\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> Reporter: David Boon
> Assignee: nicolas de loof
> Priority: Minor
> Attachments: ClasspathBuilder.diff, run.cmd.patch, run_orig.cmd
>
>
> When your maven repository is installed in "c:/Documents and
> Settings/username/.m2" You should get this error.
> INFO] [gwt:run]
> [INFO] using GWT jars for specified version 1.6.2
> [INFO] Unpack native libraries required to run GWT
> [INFO] source web.xml present - f:\project\src\main\webapp\WEB-INF\web.xml -
> using it with embedded Tomcat
> [INFO] establishing classpath list (scope = runtime)
> [ERROR] java.lang.NoClassDefFoundError: and
> [ERROR] Caused by: java.lang.ClassNotFoundException: and
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> [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:252)
> [ERROR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> [ERROR] Could not find the main class: and. Program will exit.
> [ERROR] Exception in thread "main"
--
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