ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: HTML report failure
Date Thu, 22 Aug 2002 16:35:27 GMT
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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message