You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "md (JIRA)" <ji...@codehaus.org> on 2007/08/31 00:18:11 UTC

[jira] Commented: (SUREFIRE-341) Surefire fails with java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire

    [ http://jira.codehaus.org/browse/SUREFIRE-341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106039 ] 

md commented on SUREFIRE-341:
-----------------------------

maven:2.0.6
maven-surefire-plugin: 2.4-SNAPSHOT
OS: windows 2k3 SP2
java: 1.5.0_12

my local repository repository was set to 

D:\java\maven\.m2\repository

in my settings.xml

I changed it to 

D:\java\maven\repository 

( removed the .m2 folder from the path ) and everything started working.


> Surefire fails with java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire
> ----------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-341
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-341
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Pär Wenåker
>             Fix For: 2.5
>
>
> Surefire fails with exception:
> org.apache.maven.surefire.booter.SurefireExecutionException: Unable to instantiate and execute Surefire; nested exception is java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire
> java.lang.ClassNotFoundException: org.apache.maven.surefire.Surefire
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:103)
>         at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:281)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> This is probably due to the maven repository being located in a director containing a Swedish letter (C:\Documents and Settings\Pär\.m2\repository). When I changed the location of the repository the problem disappeared

-- 
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