ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, James H [IT]" <james.h.ander...@citigroup.com>
Subject error when using <formatter type="xml" />
Date Mon, 12 May 2003 15:03:16 GMT
Everything works fine until I add the xml formatter. When I do so I get the
following:

java.lang.LinkageError: loader constraints violated when linking
org/w3c/dom/Document class
	at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Documen
tBuilderFactoryImpl.java:91)
	at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.getDocu
mentBuilder(XMLJUnitResultFormatter.java:93)
	at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.startTe
stSuite(XMLJUnitResultFormatter.java:138)
	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStartTestSu
ite(JUnitTestRunner.java:445)
	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:279)
	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask
.java:848)
	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:556)
	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:532)
	at org.apache.tools.ant.Task.perform(Task.java:341)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at org.apache.tools.ant.Target.performTasks(Target.java:336)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
	at org.apache.tools.ant.Main.runBuild(Main.java:609)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)

I'm running ant 1.5.3-1.

Here's the jnit section of my build.xml file:

 <target name="test" depends="test-compile"
  description="JUnit tests">
  <junit haltonfailure="true" printsummary="false" >
   <classpath refid="test.classpath" />
   <formatter type="brief" usefile="false" />
   <formatter type="xml" />
   <batchtest todir="${test.data.dir}">
    <fileset dir="${test.dir}" includes="**/*Test.class" />
   </batchtest>
  </junit>
 </target>

Any help appreciated :)

jim

Mime
View raw message