ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Thomas <Justin.Tho...@RCP.co.uk>
Subject Junitreport fails on my UNIX machine
Date Wed, 30 Apr 2003 15:50:54 GMT
Hi I am running this command

 <junitreport todir="${reports.dir}">
            <fileset dir="${reports.dir}">
                <include name="TEST-*.xml"/>
            </fileset>

            <report format="frames" todir="${reports.dir}/html"/>
        </junitreport>

It always results in the following.  I can't seem to locate the reason for
this, can someone please point me in the right direction?

Thanks!

BUILD FAILED
java.lang.NoClassDefFoundError: org/w3c/dom/DOMError
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:1
02)
        at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Documen
tBuilderFactoryImpl.java:88)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.getDocument
Builder(XMLResultAggregator.java:332)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.createDocum
ent(XMLResultAggregator.java:263)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.java:162)
        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)

Total time: 13 seconds
java.lang.NoClassDefFoundError: org/w3c/dom/DOMError
        at
org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:1
02)
        at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Documen
tBuilderFactoryImpl.java:88)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.getDocument
Builder(XMLResultAggregator.java:332)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.createDocum
ent(XMLResultAggregator.java:263)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.java:162)
        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)
org/w3c/dom/DOMError


Here is my classpath

CLASSPATH=./:.:/usr/share/java/java.current/lib/dt.jar:/usr/share/java/java.
current/lib/tools.jar:/usr/share/ant/ant.jar:/usr/share/java/junit.jar::/usr
/share/jakarta-tomcat-4.1.18/common/lib/servlet.jar:/usr/share/ant/catalina-
ant.jar:/usr/share/jakarta-tomcat-4.1.18/common/lib/mysql-connector-java-2.0
.14-bin.jar:/usr/share/jakarta-tomcat-4.1.18/common/lib/cactus-1.4b1.jar:/us
r/share/java/xalan.jar:/usr/share/java/ant-optional.jar


Mime
View raw message