You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/07/11 05:58:19 UTC

DO NOT REPLY [Bug 30031] New: - forkmode="once" doesn't work with JUnitLauncher

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30031>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30031

forkmode="once" doesn't work with JUnitLauncher

           Summary: forkmode="once" doesn't work with JUnitLauncher
           Product: Ant
           Version: 1.6.2beta1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: kellyc@apache.org


When using forkmode="once" with junit task, it causes JUnitLauncher to give a
ClassNotFoundException:

error message="testsfile=/home/camk/dev/vcj/junittestcases1562554603.properties"
type="java.lang.ClassNotFoundException">java.lang.ClassNotFoundException:
testsfile=/home/camk/dev/vcj/junittestcases1562554603.properties
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)

I've verified that my ant-optional.jar is from the 1.6.2beta1 build with ant
-diagnostics:
------- Ant diagnostics report -------
Apache Ant version 1.6.2beta1 compiled on July 2 2004
 
-------------------------------------------
 Implementation Version (JDK1.2+ only)
-------------------------------------------
core tasks     : 1.6.2beta1
optional tasks : 1.6.2beta1



The launcher command line is:
    [junit] Running multiple tests in the same VM
    [junit] Implicitly adding
/usr/local/install/ant-1.6.2b1/lib/junit.jar:/usr/local/install/ant-1.6.2b1/lib/ant-launcher.jar:/usr/local/install/ant-1.6.2b1/lib/ant.jar:/usr/local/install/ant-1.6.2b1/lib/ant-junit.jar
to CLASSPATH
    [junit] Running ut.sf.vcj.datamodel.project.ProjectTest
    [junit] Executing '/usr/local/install/j2sdk1.4.2_05/jre/bin/java' with
arguments:
    [junit] '-Dlog4j.configuration=logger.xml'
    [junit] '-classpath'
    [junit]
'/home/camk/dev/vcj/lib/test/junit-3.8.1.jar:/home/camk/dev/vcj/target/test/classes:/home/camk/dev/vcj/target/test/conf:/home/camk/dev/vcj/target/hibernate:/home/camk/dev/vcj/target/classes:/home/camk/dev/vcj/lib/commons-collections-3.0.jar:/home/camk/dev/vcj/lib/commons-logging-1.0.3.jar:/home/camk/dev/vcj/lib/log4j-1.2.8.jar:/home/camk/dev/vcj/lib/hibernate/ant-1.5.3.jar:/home/camk/dev/vcj/lib/hibernate/ant-optional-1.5.3.jar:/home/camk/dev/vcj/lib/hibernate/c3p0-0.8.4.5.jar:/home/camk/dev/vcj/lib/hibernate/cglib-full-2.0.1.jar:/home/camk/dev/vcj/lib/hibernate/commons-collections-2.1.jar:/home/camk/dev/vcj/lib/hibernate/commons-dbcp-1.1.jar:/home/camk/dev/vcj/lib/hibernate/commons-lang-1.0.1.jar:/home/camk/dev/vcj/lib/hibernate/commons-logging-1.0.3.jar:/home/camk/dev/vcj/lib/hibernate/commons-pool-1.1.jar:/home/camk/dev/vcj/lib/hibernate/concurrent-1.3.2.jar:/home/camk/dev/vcj/lib/hibernate/connector.jar:/home/camk/dev/vcj/lib/hibernate/dom4j-1.4.jar:/home/camk/dev/vcj/lib/hibernate/ehcache-0.7.jar:/home/camk/dev/vcj/lib/hibernate/hibernate2.jar:/home/camk/dev/vcj/lib/hibernate/hsqldb.jar:/home/camk/dev/vcj/lib/hibernate/jaas.jar:/home/camk/dev/vcj/lib/hibernate/jboss-cache.jar:/home/camk/dev/vcj/lib/hibernate/jboss-common.jar:/home/camk/dev/vcj/lib/hibernate/jboss-jmx.jar:/home/camk/dev/vcj/lib/hibernate/jboss-system.jar:/home/camk/dev/vcj/lib/hibernate/jcs-1.0-dev.jar:/home/camk/dev/vcj/lib/hibernate/jdbc2_0-stdext.jar:/home/camk/dev/vcj/lib/hibernate/jgroups-2.2.1.jar:/home/camk/dev/vcj/lib/hibernate/jta.jar:/home/camk/dev/vcj/lib/hibernate/junit-3.8.1.jar:/home/camk/dev/vcj/lib/hibernate/log4j-1.2.8.jar:/home/camk/dev/vcj/lib/hibernate/odmg-3.0.jar:/home/camk/dev/vcj/lib/hibernate/oscache-2.0.jar:/home/camk/dev/vcj/lib/hibernate/proxool-0.8.3.jar:/home/camk/dev/vcj/lib/hibernate/swarmcache-1.0rc2.jar:/home/camk/dev/vcj/lib/hibernate/xalan-2.4.0.jar:/home/camk/dev/vcj/lib/hibernate/xerces-2.4.0.jar:/home/camk/dev/vcj/lib/hibernate/xml-apis.jar:/home/camk/dev/vcj/lib/db/hsqldb.jar:/home/camk/dev/vcj/lib/db/mkjdbc.jar:/home/camk/dev/vcj/lib/db/mysql-connector-java-3.0.11-stable-bin.jar:/home/camk/dev/vcj/lib/db/oracle-jdbc-9.2.0.3_g-1.4.jar:/home/camk/dev/vcj/lib/db/pg73jdbc3.jar:/usr/local/install/ant-1.6.2b1/lib/junit.jar:/usr/local/install/ant-1.6.2b1/lib/ant-launcher.jar:/usr/local/install/ant-1.6.2b1/lib/ant.jar:/usr/local/install/ant-1.6.2b1/lib/ant-junit.jar'
    [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
    [junit] 'testsfile=/home/camk/dev/vcj/junittestcases1562554603.properties'
    [junit] 'filtertrace=true'
    [junit] 'haltOnError=false'
    [junit] 'haltOnFailure=false'
    [junit]
'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnitResultFormatter'
    [junit] 'showoutput=true'
    [junit]
'formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,/home/camk/dev/vcj/target/test/testresults-20040710-2342/xml/null.xml'
    [junit] 'propsfile=/home/camk/dev/vcj/junit1902549252.properties'

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org