[ http://jira.codehaus.org/browse/MNG-1526?page=all ] Anuerin Diaz closed MNG-1526: -----------------------------
Resolution: Incomplete I have decided to close this issue for the mean time until I have more information. This is in relation to the discussion in http://www.mail-archive.com/users@maven.apache.org/msg27931.html > NoClassDefFound when unit tests are being executed > -------------------------------------------------- > > Key: MNG-1526 > URL: http://jira.codehaus.org/browse/MNG-1526 > Project: Maven 2 > Type: Bug > Components: maven-surefire-plugin > Versions: 2.0 > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]