You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2007/01/21 23:29:22 UTC
[jira] Moved: (SUREFIRE-212) NoClassDefFound when unit tests are
being executed
[ http://jira.codehaus.org/browse/SUREFIRE-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter moved MSUREFIRE-11 to SUREFIRE-212:
------------------------------------------------
Complexity: (was: Intermediate)
Key: SUREFIRE-212 (was: MSUREFIRE-11)
Project: Maven Surefire (was: Maven 2.x Surefire Plugin)
> NoClassDefFound when unit tests are being executed
> --------------------------------------------------
>
> Key: SUREFIRE-212
> URL: http://jira.codehaus.org/browse/SUREFIRE-212
> Project: Maven Surefire
> Issue Type: Bug
> Environment: Windows XP Professional/ Maven 2.0
> Reporter: Anuerin Diaz
>
> Surefire is failing on its execution and from what I can surmise from the error is that maven tries to run the non-existent
> "org.codehaus.surefire.Runner" class. I already opened up the 1.3 and 1.4 surefire group of jar files and there is really no Runner class in there.
> Is there a special step or requirement to run test cases in maven? The JUnit tests run fine from the Ant JUnit task. The stacktrace is shown below.
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> java.lang.NoClassDefFoundError
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> at java.lang.Class.newInstance0(Class.java:308)
> at java.lang.Class.newInstance(Class.java:261)
> at com.meridea.cs.logging.Logger.getDelegatePlugin(Logger.java:306)
> at com.meridea.cs.logging.Logger.<init>(Logger.java:64)
> at com.meridea.cs.logging.Logger.getLogger(Logger.java:285)
> at test.com.meridea.cs.charfilter.AllowedCharacterFilterTest.<clinit>(AllowedCharacterFilterTest.java:23)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.codehaus.surefire.battery.JUnitBattery.<init>(JUnitBattery.java:134)
> at org.codehaus.surefire.Surefire.instantiateBatteries(Surefire.java:318)
> at org.codehaus.surefire.Surefire.run(Surefire.java:130)
> at org.codehaus.surefire.Surefire.run(Surefire.java:77)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
> at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:303)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301
> )
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> RUN ABORTED
> java.lang.NoClassDefFoundError
> org.codehaus.surefire.Runner
> An exception or error caused a run to abort.
> null
--
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