[
http://jira.codehaus.org/browse/MECLIPSE-625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benjamin Bentmann closed MECLIPSE-625.
--------------------------------------
Resolution: Not A Bug
Assignee: Benjamin Bentmann
As written in [the description of this JIRA
project|http://jira.codehaus.org/browse/MECLIPSE], this is about {{mvn
eclipse:eclipse}}, not M2Eclipse. For issues with M2E, please fill them at
https://issues.sonatype.org/browse/MNGECLIPSE.
> ClassNotFoundException when running junit test ("Run As"|"Junit Test")
> ----------------------------------------------------------------------
>
> Key: MECLIPSE-625
> URL: http://jira.codehaus.org/browse/MECLIPSE-625
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Environment: Linux x86_64, Eclipse 3.5, M2Eclipse pluing
> 0.9.9.200911171109
> Reporter: Peter De Maeyer
> Assignee: Benjamin Bentmann
> Priority: Blocker
>
> I have a project module A which depends on another project module B.
> When I try to run a JUnit test ("Run As"|"Junit Test") in project A, I get a
> ClassNotFoundException for the all classes that are in project B.
> At compile time it finds the dependencies in project module B, but not at
> runtime???
> I've found another report of the same problem here:
> http://blog.andrewbeacock.com/2008/11/classnotfoundexception-when-running.html
> The stack trace looks like this:
> ---
> java.lang.NoClassDefFoundError: org/de/maeyer/search/MatcherTest
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:632)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
> at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:693)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:429)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: java.lang.ClassNotFoundException: org.de.maeyer.search.MatcherTest
> at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
> ... 17 more
--
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