Add the fork='true' attribute, and that should solve it. Known bug. --DD -----Original Message----- From: Jiang, Bianca [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: LinkageError while running junit task
Hi, I got the following error while running junit task, any hint there what could be the cause? Thanks. Bianca ================================================================== test: [junit] Running AllTests BUILD FAILED java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Doc ument class at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder( DocumentBuilderFactoryImpl.java:88) at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter. getDocumentBuilder(XMLJUnitResultFormatter.java:93) at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter. startTestSuite(XMLJUnitResultFormatter.java:138) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStar tTestSuite(JUnitTestRunner.java:433) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUni tTestRunner.java:279) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JU nitTask.java:804) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT ask.java:551) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT ask.java:527) at org.apache.tools.ant.Task.perform(Task.java:317) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:334) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.Project.executeTargets(Project.java:1250) at org.apache.tools.ant.Main.runBuild(Main.java:610) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) My junit task looks like the following in my build file: <!-- task junit --> <junit printsummary="yes"> <!-- Reference the path specified earlier in "init" with its id as the classpath --> <classpath refid="project.test.path"/> <!-- Specify the format of the report to be xml --> <formatter type="xml"/> <!-- Run a bunch of tests and create reports to report directory --> <batchtest todir="${report}${DSTAMP}"> <!-- Run all tests but test class called "*Suite" in the test directory --> <fileset dir="${test}"> <include name="**/*.java"/> <exclude name="**/*Suite.java"/> </fileset> </batchtest> </junit> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>