ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark C. Prins - CARIS bv." <mark.pr...@caris.com>
Subject problem using junitreport task
Date Fri, 31 May 2002 13:47:39 GMT
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,
I run into this error using the junitreport (the junit task itself
works OK - I get valid xml files).
I get a build failed because a NoSuchMethodError is thrown (see
below) Any ideas?

CONSOLE:

     [echo] starting junitreport task
     [echo] System classpath is:
C:\jdk\lib\tools.jar;C:\jtools\JAKART~1.4\lib\xerces.jar;C:\jtools\JAK
ART~1.4\lib\xalan.jar;C:\jtools\JAKART~1.4\lib\optional.jar;C:\jtools\
JAKART~1.4\lib\junit.jar;C:\jtools\JAKART~1.4\lib\jaxp.jar;C:\jtools\J
AKART~1.4\lib\genjar.jar;C:\jtools\JAKART~1.4\lib\crimson.jar;C:\jtool
s\JAKART~1.4\lib\antman.jar;C:\jtools\JAKART~1.4\lib\ant.jar;C:\jtools
\jai-1_1_1\lib\jai_codec.jar;C:\jtools\jai-1_1_1\lib\jai_core.jar;
[junitreport] Parsing file:
'C:\_PROJE~1\FusionLight\reports\TEST-test.com.caris.fusionlight.trans
fer.TestConfigRequest.xml'
[junitreport] Parsing file:
'C:\_PROJE~1\FusionLight\reports\TEST-test.com.caris.fusionlight.trans
fer.TestConfigResponse.xml'
[junitreport] Parsing file:
'C:\_PROJE~1\FusionLight\reports\TEST-test.com.caris.fusionlight.trans
fer.TestConfigResponseException.
xml'
[junitreport] Parsing file:
'C:\_PROJE~1\FusionLight\reports\TEST-test.com.caris.fusionlight.trans
fer.TestLayerRequestData.xml'
[junitreport] Using Xalan version: Xalan Java 2.3.1

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
:270)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl
.java:625)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl
.java:1088)
        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl
.java:1066)
        at
org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor.execute(Ag
gregateTransformer.java:321)
        at
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.tran
sform(AggregateTransformer.java:190)
        at
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execu
te(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)



BUILD.XML snippet:

   <target name="unittest" description="Runs the JUnit unit test on
all classes" depends="init">
      <mkdir description="make directory" dir="${unittest.dir}" />

      <echo message="starting junit task" />

      <junit printsummary="true" fork="no">
         <formatter type="xml" />

         <classpath>
            <pathelement path="${compile.dir}" />
         </classpath>

         <batchtest fork="no" todir="${unittest.dir}">
            <fileset dir="${src.dir}">
               <include name="**/*Test*.java" />
            </fileset>
         </batchtest>
      </junit>

      <echo message="starting junitreport task" />

      <echo message="System classpath is: ${java.class.path}" />

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

         <report format="noframes" todir="${unittest.dir}" />
      </junitreport>
   </target>





- -
Mark C. Prins
Spatial Fusion Specialist
______________________________________________________

CARIS Geographic Informations Systems BV
CARIS BV Support: support@caris.nl
CARIS BV Marketing/Sales: sales@caris.nl
tel. +31413296010
fax. +31413296012
WWW Marine:  http://www.caris.nl
WWW Spatial Components : http://www.spatialcomponents.com
Mgr. van Oorschotstraat 13, 5473 AX Heeswijk
PO.box 47, 5473 ZG HEESWIJK-DINTHER
the Netherlands
________________________________________

Join us for CARIS 2002 
 Revolutionizing Geomatics in Norfolk, Virginia
from September 3rd - 6th.  
Email caris2002@caris.com for full details.
______________________________________________________ 

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.1

iQA/AwUBPPd+9w+nhaE7SmS7EQKP0gCeOo7PS7kFEzdB4rRlRTuBuD9Hk4sAmwcu
uk9+WLGZM+BCT46mw+z7YnEe
=s+Qm
-----END PGP SIGNATURE-----


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