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 RE: Junitreport fails on my UNIX machine
Date Wed, 30 Apr 2003 16:12:51 GMT
Where do I specify this in ant though?

junitreport does not seem to take a classpath

-----Original Message-----
From: Erik Price [mailto:eprice@ptc.com]
Sent: 30 April 2003 16:59
To: Ant Users List
Subject: Re: Junitreport fails on my UNIX machine


I think that you also need to have xerces.jar and xercesImpl.jar because 
xalan.jar uses them when generating the HTML report.

You can get them from http://xml.apache.org/

No offense, but why bother with a CLASSPATH variable when you have Ant? 
;)  (I just find it to be a PITA.)


Erik



Justin Thomas wrote:
> 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
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
View raw message