Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 66023 invoked by uid 500); 25 Jul 2003 14:41:46 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 66009 invoked from network); 25 Jul 2003 14:41:46 -0000 Received: from unknown (HELO pegasus.axiomsystems.com) (194.42.245.4) by daedalus.apache.org with SMTP; 25 Jul 2003 14:41:46 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Junit/JunitReport in Ant 1.5.3.1/1.6alpha Date: Fri, 25 Jul 2003 15:41:38 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Junit/JunitReport in Ant 1.5.3.1/1.6alpha Thread-Index: AcNSst4Rec/oAi9NRiaq/Mp+ST/70gABYcvQ From: "Keith Hatton" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, Thanks Jake, you have definitely pointed me in the right direction. I'm = not there yet, but I can see roughly where the problem is. Using Ant 1.5.3.1, my forked junit process has, amongst others, = optional.jar in its classpath. The manifest of optional.jar pulls in the = xml jars. Using Ant 1.6 alpha, optional.jar isn't there. Instead I have = ant-junit.jar. But there is nothing to pull in the XML libraries in this = case. Hence the NoClassDefFoundError, I think. I'm including the pertinent output of ant -debug to show exactly what = classpath is being used. Everything up to and including gsbase-2.0.jar = is specified by me. The rest is constructed by Ant. I'll do some playing around with classpaths, but maybe others have ideas = on this. Is it a bug in 1.6 alpha that I should raise? Thanks Keith [junit] Executing = 'D:\Progra~1\JavaSoft\jdk1.3.1_01a\jre\bin\java.exe' with arguments: [junit] '-classpath' [junit] = 'E:\dev\current\build\o2s\ejb\tmp\instrumented;E:\dev\release\v5.3\O 2S\O2SAPI.jar;E:\dev\current\build\o2s\ejb\tmp\classes;E:\dev\current\tec= hnology \Java\resources;E:\dev\release\v5.3\O2S\jboss\O2SEJB.jar;D:\tools\gsbase-= 2.0\gsb ase-2.0.jar;D:\tools\Ant1.6alpha\lib\junit.jar;D:\tools\jcoverage-1.0.4\j= coverag e.jar;D:\Tools\Ant1.6alpha\lib\junit.jar;D:\Tools\Ant1.6alpha\lib\ant.jar= ;D:\Too ls\Ant1.6alpha\lib\ant-junit.jar' [junit] = 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner' [junit] = 'com.axiomsystems.o2s.values.attributes._junit_TextAttribute' [junit] 'filtertrace=3Dtrue' [junit] 'haltOnError=3Dfalse' [junit] 'haltOnFailure=3Dfalse' [junit] = 'formatter=3Dorg.apache.tools.ant.taskdefs.optional.junit.SummaryJUnit ResultFormatter' [junit] 'showoutput=3Dfalse' [junit] = 'formatter=3Dorg.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResu ltFormatter,E:\dev\current\build\o2s\ejb\TEST-com.axiomsystems.o2s.values= .attrib utes._junit_TextAttribute.xml' [junit] = 'propsfile=3DE:\dev\current\build\o2s\ejb\junit1742787289.properties' [junit] [junit] The ' characters around the executable and arguments are [junit] not part of the command. Execute:Java13CommandLauncher: Executing = 'D:\Progra~1\JavaSoft\jdk1.3.1_01a\jre\ bin\java.exe' with arguments: '-classpath' 'E:\dev\current\build\o2s\ejb\tmp\instrumented;E:\dev\release\v5.3\O2S\O2= SAPI.ja r;E:\dev\current\build\o2s\ejb\tmp\classes;E:\dev\current\technology\Java= \resour ces;E:\dev\release\v5.3\O2S\jboss\O2SEJB.jar;D:\tools\gsbase-2.0\gsbase-2= .0.jar; D:\tools\Ant1.6alpha\lib\junit.jar;D:\tools\jcoverage-1.0.4\jcoverage.jar= ;D:\Too ls\Ant1.6alpha\lib\junit.jar;D:\Tools\Ant1.6alpha\lib\ant.jar;D:\Tools\An= t1.6alp ha\lib\ant-junit.jar' 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner' 'com.axiomsystems.o2s.values.attributes._junit_TextAttribute' 'filtertrace=3Dtrue' 'haltOnError=3Dfalse' 'haltOnFailure=3Dfalse' 'formatter=3Dorg.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitRes= ultFormat ter' 'showoutput=3Dfalse' 'formatter=3Dorg.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultF= ormatter, E:\dev\current\build\o2s\ejb\TEST-com.axiomsystems.o2s.values.attributes.= _junit_ TextAttribute.xml' 'propsfile=3DE:\dev\current\build\o2s\ejb\junit1742787289.properties' The ' characters around the executable and arguments are not part of the command. [junit] java.lang.NoClassDefFoundError: org/w3c/dom/Node [junit] at java.lang.Class.forName0(Native Method) [junit] at java.lang.Class.forName(Class.java:120) [junit] at = org.apache.tools.ant.taskdefs.optional.junit.FormatterElement .createFormatter(FormatterElement.java:236) [junit] at = org.apache.tools.ant.taskdefs.optional.junit.FormatterElement .createFormatter(FormatterElement.java:220) [junit] at = org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. createAndStoreFormatter(JUnitTestRunner.java:564) [junit] at = org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. main(JUnitTestRunner.java:509) [junit] Exception in thread "main" [junit] TEST = com.axiomsystems.o2s.values.attributes._junit_TextAttribute FAI LED --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org