Hi all,

I encounter problem with my junit tests when I try to update version of
surefire plugin.
Actually all my tests that need to read xml files failed with the following
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:266)
        at com.ideo.sweetdev.core.service.ServiceManager.<clinit>(
ServiceManager.java:153)
        at
com.ideo.sweetdev.core.service.broker.BrokerHelper.getBrokerService(
BrokerHelper.java:51)
        at com.ideo.sweetdev.core.service.broker.BrokerHelper.getBroker(
BrokerHelper.java:78)
        at
com.ideo.sweetdev.core.service.broker.TestBroker.testServiceCallOk(
TestBroker.java:40)
        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 junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        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)


I have the problem with surefire 2.4.2 but it works for 2.3.1 !!
Any help are welcome.
Thanks

Guillaume Boucherie

Reply via email to