ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike.McGo...@lawson.com
Subject JUnitReport setup issue....
Date Fri, 25 Jan 2002 22:21:31 GMT
I had an existing version of xalan.jar on my system.  When running with
this version (2.0.1)  I got the following result.  After checking the
archives which suggested the latest version, I get a similar (yet different
error).  That output as well as relevant portion of my build.xml file are
included.  Are there dependent jars that I am missing?

 Thanks much,
 Mike McGowan

WA C:\....rdtech\xml\util>ant
Buildfile: build.xml
buildtests:
runtests:
[junitreport] Using Xalan version: 2.0.1
BUILD FAILED
java.lang.NoSuchMethodError
        at
org.apache.xpath.DOM2Helper.getLocalNameOfNode(DOM2Helper.java:326)
        at
org.apache.xalan.templates.TemplateList.getHead(TemplateList.java:471)
        at
org.apache.xalan.templates.TemplateList.getTemplate(TemplateList.java:528)
        at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:432)
        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2202)
        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2085)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1219)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:483)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1147)
        at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(AggregateTransformer.java:321)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:190)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:170)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

After download the latest version I get......


WA C:.....rdtech\xml\util>ant
Buildfile: build.xml
buildtests:
runtests:
[junitreport] Using Xalan version: Xalan Java 2.2.0
BUILD FAILED
java.lang.NoSuchMethodError
        at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.addNode(DOM2DTM.java:293)
        at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.<init>(DOM2DTM.java:162)
        at
org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:264)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:634)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1092)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1070)
        at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(AggregateTransformer.java:321)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:190)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:170)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 4 seconds



Here is the relevant portion from my build.xml

     <target name="runtests" depends="buildtests">

          <delete>
               <fileset dir="." includes="TEST-*.xml" />
          </delete>

          <junit printsummary="no" haltonfailure="no" fork="yes">
               <formatter type="xml" usefile="yes" />
          <test name="com.lawson.rdtech.xml.util.XMLSrcFactoryTest"
                 todir="${TESTDIR}/com/lawson/rdtech/xml/util" />
               <test name="com.lawson.rdtech.xml.util.XMLSrcDirFactoryTest"
                 todir="${TESTDIR}/com/lawson/rdtech/xml/util" />
          </junit>

          <junitreport todir="${TESTDIR}/reports">
               <fileset dir="${TESTDIR}/com/lawson/rdtech/xml/util">
                    <include name="TEST-*.xml"/>
               </fileset>
               <report format="frames" todir="${TESTDIR}/report/html"/>
          </junitreport>

     </target>

Mike McGowan
mike.mcgowan@lawson.com


--
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