Hi all,
We are having some issue when running Mule test cases. We did our development in eclipse and if we run our test in eclipse it works. But
when we created a build file. and run the junit tasks it give exception.
My ant target and my Mule version is 2.0.2
<target name="runxxxx" depends = "yyyyybuild">
<taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
<classpath refid="lib.classpath" />// other project librarires
<classpath refid="mule.classpath" /> // mule 2.0.2 libraries
</taskdef>
<junit printsummary="yes" haltonfailure="yes">
<classpath refid="lib.classpath" />
<classpath refid="mule.classpath" />
<sysproperty key="mule.test.timeoutSecs" value="600000000"/>
<formatter type="plain"/>
<test name="abc.bcd.efg.SetXAGAGATest" haltonfailure="yes" outfile="result">
<formatter type="xml"/>
</test>
</junit>
</target>
and Exception is
[junit] junit.framework.TestListener: addError( set timer single simple trigger , Error creating bean with name '_muleSimpleRegistryBootstrap' defined in URL [jar:file:/C:/a466030/installed/mule-2.0.2/lib/mule/mule-module-spring-config-2.0.2.jar!/default-mule-config.xml]: Invocation of init method failed; nested exception is org.mule.api.lifecycle.InitialisationException: Initialisation Failure: Object "transformer: _XmlToOutputHandler" has already been registered in the Registry. Registered object is "XmlToOutputHandler{this=1fddb33, name='_XmlToOutputHandler', ignoreBadInput=false, returnClass=interface org.mule.api.transport.OutputHandler, sourceTypes=[class java.lang.String, class [B, interface javax.xml.transform.Source, class org.xml.sax.InputSource, interface org.dom4j.Document, interface org.w3c.dom.Document, interface org.w3c.dom.Element, class java.io.InputStream, interface org.mule.api.transport.OutputHandler, interface javax.xml.stream.XMLStreamReader, interface org.mule.module.xml.transformer.DelayedResult]}.class org.mule.module.xml.transformer.XmlToOutputHandler", Object being registered is "XmlToOutputHandler{this=141fc8c, name='_XmlToOutputHandler', ignoreBadInput=false, returnClass=interface org.mule.api.transport.OutputHandler, sourceTypes=[class java.lang.String, class [B, interface javax.xml.transform.Source, class org.xml.sax.InputSource, interface org.dom4j.Document, interface org.w3c.dom.Document, interface org.w3c.dom.Element, class java.io.InputStream, interface org.mule.api.transport.OutputHandler, interface javax.xml.stream.XMLStreamReader, interface org.mule.module.xml.transformer.DelayedResult]}.class org.mule.module.xml.transformer.XmlToOutputHandler" (org.springframework.beans.factory.BeanCreationException))
can you help me in this regard.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email