You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guillaume Boucherie <gu...@gmail.com> on 2008/05/16 16:10:25 UTC

[maven-surefire-plugin] problem with my tests

Hi all,

I have a strange behavior with my junit tests.
I have a project with multi-modules.
When I run the tests individually for module (mvn test) everything is ok.
But when I run the tests from the parent pom (mvn test) I have always an
error when my program try to parse an xml file.
See the stack trace for details on error :
org.apache.xml.utils.WrappedRuntimeException: Output method is xml could not
load output_xml.properties (check CLASSPATH)
        at
org.apache.xalan.templates.OutputProperties.getDefaultMethodProperties(OutputProperties.java:394)
        at
org.apache.xalan.templates.OutputProperties.<init>(OutputProperties.java:132)
        at
org.apache.xalan.transformer.TransformerIdentityImpl.<init>(TransformerIdentityImpl.java:104)
        at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:842)
        at
com.ideo.sweetdev.data.service.configxml.digester.ConfigXml$ConfigXmlUtil.documentToBytes(ConfigXml.java:506)
        at
com.ideo.sweetdev.data.service.configxml.digester.ConfigXml.unmarshall(ConfigXml.java:355)
        at
com.ideo.sweetdev.data.service.configxml.digester.ConfigXml.init(ConfigXml.java:253)
        at
com.ideo.sweetdev.data.service.configxml.digester.ConfigXml.<init>(ConfigXml.java:133)
        at
com.ideo.sweetdev.data.service.configxml.digester.ConfigXmlService.getConfigXml(ConfigXmlService.java:138)
        at
com.ideo.sweetdev.data.service.configxml.digester.ConfigXmlService.getConfigXml(ConfigXmlService.java:115)
        at
com.ideo.sweetdev.data.service.configxml.digester.ConfigXmlHelper.getConfigXml(ConfigXmlHelper.java:73)
        at
com.ideo.sweetdev.core.service.ServiceManager.loadServicesDefinition(ServiceManager.java:470)
        at
com.ideo.sweetdev.core.service.ServiceManager.initialize(ServiceManager.java:304)
        at
com.ideo.sweetdev.core.service.ServiceManager.<clinit>(ServiceManager.java:153)
        at
com.ideo.sweetdev.core.service.fileConfig.FileConfigHelper.getConfigService(FileConfigHelper.java:28)
        at
com.ideo.sweetdev.core.controller.ControllerFactory.initialize(ControllerFactory.java:146)
        at
com.ideo.sweetdev.core.controller.ControllerFactory.getInstance(ControllerFactory.java:113)
        at
com.ideo.sweetdev.core.controller.TestControllerFactory.setUp(TestControllerFactory.java:77)
        at junit.framework.TestCase.runBare(TestCase.java:125)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        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.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
        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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)

I'm on a windows XP with java-1.6 and maven-2.0.9
Does anybody know something about my problem ?
Thanks

Guillaume B.

Re: [maven-surefire-plugin] problem with my tests

Posted by Dan Fabulich <da...@fabulich.com>.
Guillaume Boucherie wrote:

> I have a strange behavior with my junit tests.
> I have a project with multi-modules.
> When I run the tests individually for module (mvn test) everything is ok.
> But when I run the tests from the parent pom (mvn test) I have always an
> error when my program try to parse an xml file.

This doesn't immediately ring a bell; it seems impossible to diagnose 
it based on only this information.

Try to create a reduced test case (a zip of minimal Maven projects that 
reproduce the problem) and file it as a bug.

-Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org