It has all the dependencies as I can see it. The module being tested is the most basic part of the application so aside from third party libraries then there should be no more dependecies required.
I have opened up all of the surefire jar files and I did not see any Runner class in them. I wont be able to check again until Monday comes but I grabbed the surefire-booter jar file here at home and there are only two classes there: IsolatedClassLoader, and SurefireBooter. This is for the 1.4 version and I am pretty sure it is the same version I have in the office. Ill try to dig-in deeper on Monday but for now I will just keep open the ticket that I logged in JIRA. Any further tips on where to look would be very much appreciated. Thanks. ciao! On 11/12/05, Brett Porter <[EMAIL PROTECTED]> wrote: > Runner comes from surefire-booter. However, I don't think that it is > saying that it can't find the runner, as the call that causes it is: > > at com.meridea.cs.logging.Logger.getDelegatePlugin(Logger.java:306) > > Surefire runs in the VM, with a separated classloader, so is this > using a class not in the project's dependencies? > > - Brett > > On 11/12/05, Anuerin Diaz <[EMAIL PROTECTED]> wrote: > > hi, > > > > 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? > > stacktrace is shown below. > > > > thanks. > > > > ciao! > > > > > > > > ------------------------------------------------------- > > 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 > > > > -- > > > > "Programming, an artform that fights back" > > > > Anuerin G. Diaz > > Registered Linux User #246176 > > Friendly Linux Board @ http://mandrivausers.org/index.php > > http://capsule.ramfree17.org , when you absolutely have nothing else > > better to do > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "Programming, an artform that fights back" Anuerin G. Diaz Registered Linux User #246176 Friendly Linux Board @ http://mandrivausers.org/index.php http://capsule.ramfree17.org , when you absolutely have nothing else better to do --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
