You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Suresh Babu Koya <sk...@quark.co.in> on 2002/08/22 18:33:44 UTC
HTML report failure
Hi group,
I am using Ant 1.5 build and on running the Ant script I get the following
error. The tests run succesfully and the Ant script shows that all the
tests are successful.
But after the HTML generation it reports the following errors.
It fails in the following part .....
<junitreport todir="${reports.dir}">
<fileset dir="${reports.dir}">
<include name="TEST*.xml"/>
</fileset>
<report format="frames" todir="${reports.dir}/html"/>
</junitreport>
I have copied the errors also for your reference. I am having Xalan already
in the class path. What could be the problem?
fileset: Setup scanner in dir
D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports with patternSet{
includes: [TEST*.xml] excludes: [] }
[junitreport] Parsing file:
'D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports\TEST-com.quark.dit.c
ommon.xsl.TestSuit.xml'
[junitreport] Parsing file:
'D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports\TEST-com.quark.dit.m
apeditor.map.CreateMapTestSuit.xml'
[junitreport] Parsing file:
'D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports\TESTS-TestSuites.xml
'
[junitreport] the file
D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports\TESTS-TestSuites.xml
is not a valid testsuite XML document
BUILD FAILED
file:D:/work/qteCVS/DIT/Cypress-India/QTE/buildscript/buildtests.xml:61:
Errors while applying transformations
at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:191)
at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.java:176)
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)
--- Nested Exception ---
Could not find xalan2 nor xalan1 in the classpath. Check
<http://xml.apache.org/xalan-j> http://xml.apache.org/xalan-j
at
org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor.newInstance(Xalan
Executor.java:116)
at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
AggregateTransformer.java:188)
at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
ResultAggregator.java:176)
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)
Re: HTML report failure
Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
Do what it says and add Xalan to your ANT_HOME/lib directory. I'm
generating HTML reports all the time, so there is no bug in this regard.
Erik
Suresh Babu Koya wrote:
> Hi group,
>
> I am using Ant 1.5 build and on running the Ant script I get the following
> error. The tests run succesfully and the Ant script shows that all the
> tests are successful.
> But after the HTML generation it reports the following errors.
>
>
> It fails in the following part .....
> <junitreport todir="${reports.dir}">
> <fileset dir="${reports.dir}">
> <include name="TEST*.xml"/>
> </fileset>
> <report format="frames" todir="${reports.dir}/html"/>
> </junitreport>
> I have copied the errors also for your reference. I am having Xalan already
> in the class path. What could be the problem?
>
>
> fileset: Setup scanner in dir
> D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports with patternSet{
> includes: [TEST*.xml] excludes: [] }
> [junitreport] Parsing file:
> 'D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports\TEST-com.quark.dit.c
> ommon.xsl.TestSuit.xml'
> [junitreport] Parsing file:
> 'D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports\TEST-com.quark.dit.m
> apeditor.map.CreateMapTestSuit.xml'
> [junitreport] Parsing file:
> 'D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports\TESTS-TestSuites.xml
> '
> [junitreport] the file
> D:\work\qteCVS\DIT\Cypress-India\QTE\build\testreports\TESTS-TestSuites.xml
> is not a valid testsuite XML document
>
> BUILD FAILED
> file:D:/work/qteCVS/DIT/Cypress-India/QTE/buildscript/buildtests.xml:61:
> Errors while applying transformations
> at
> org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
> AggregateTransformer.java:191)
> at
> org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
> ResultAggregator.java:176)
> 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)
> --- Nested Exception ---
> Could not find xalan2 nor xalan1 in the classpath. Check
> <http://xml.apache.org/xalan-j> http://xml.apache.org/xalan-j
> at
> org.apache.tools.ant.taskdefs.optional.junit.XalanExecutor.newInstance(Xalan
> Executor.java:116)
> at
> org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(
> AggregateTransformer.java:188)
> at
> org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XML
> ResultAggregator.java:176)
> 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)
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>