Hey again,
Does anyone recognize this problem? Thanks, Daniel ________________________________ From: Daniel Hunt [mailto:[EMAIL PROTECTED] Sent: 08 February 2006 12:39 To: users@maven.apache.org Subject: Invocation Error Hello All, I have been experiencing issues while attempting to run the command "mvn test" on my project. Having spent a few days mulling over the problem, and being unable to solve it myself, I'm turning to the mailing list for guidance! Is anyone able to make sense of the following output + stacktrace? Any input at all would be helpful. Thanks, Daniel E:\workarea\xspring>mvn test [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ - --- [INFO] Building Custom Spring sample application [INFO] task-segment: [test] [INFO] ------------------------------------------------------------------------ - --- [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Setting reports dir: E:\workarea\xspring\target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at org.codehaus.surefire.battery.JUnitBattery.<init>(JUnitBattery.java:1 49) 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(DelegatingMethodAcces sorImpl.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(DefaultPlugi nManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) 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(DelegatingMethodAcces sorImpl.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) Caused by: java.lang.NoClassDefFoundError: org/xml/sax/ext/EntityResolver2 at org.apache.xerces.parsers.DOMParser.setEntityResolver(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.setEntityResolver(Unknown Source) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :659) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :616) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :602) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionCon verter.java:460) at org.apache.log4j.LogManager.<clinit>(LogManager.java:113) at org.apache.log4j.Logger.getLogger(Logger.java:107) at com.precisionsoftware.persist.ibatis.LanguageDaoIbatisTest.<clinit>(L anguageDaoIbatisTest.java:13) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at junit.framework.TestSuite.createTest(TestSuite.java:131) at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) at junit.framework.TestSuite.<init>(TestSuite.java:75) ... 32 more RUN ABORTED java.lang.reflect.InvocationTargetException org.codehaus.surefire.Runner An exception or error caused a run to abort. null Results : [surefire] Tests run: 0, Failures: 0, Errors: 1 [INFO] ------------------------------------------------------------------------ - --- [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ - --- [INFO] There are some test failure. [INFO] ------------------------------------------------------------------------ - --- [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ - --- [INFO] Total time: 2 seconds [INFO] Finished at: Wed Feb 08 12:37:36 GMT 2006 [INFO] Final Memory: 5M/10M [INFO] ------------------------------------------------------------------------ - --- Daniel Hunt Software Developer Precision Software Limited Castlewood House, Castlewood Ave, Rathmines, Dublin 6, Ireland www.precisionsoftware.com <http://www.precisionsoftware.com/>