ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Brunson <charles.brun...@sun.com>
Subject Re: junit problem with ant 1.5Beta1
Date Fri, 03 May 2002 19:35:31 GMT
I've done a little more digging into this and I *think* it's a bug
in ant 1.5Beta1. If not then maybe someone can explain to me what
I'm doing wrong. I believe it's a bug in:
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter

I can't tell if it's trying to load some kind of native code or it's
simply referencing a class that doesn't exist.

Here's how to reproduce it:

java -classpath /src/users/cb9206/nile/config:/src/users/cb9206/nile/
thirdparty/lib/cos.jar:/src/users/cb9206/nile/thirdparty/lib/servlet-2_3.jar:
/src/users/cb9206/nile/thirdparty/lib/hsqldb.jar:/src/users/cb9206/nile
/thirdparty/lib/log4j-1.2rc1.jar:/src/users/cb9206/nile/thirdparty/lib/
jakarta-oro-2.0.5.jar:/src/users/cb9206/nile/thirdparty/lib/java-getopt-1.0.9.jar:
/src/users/cb9206/nile/dist/uuid.jar:/src/users/cb9206/nile/dist/util.jar:
/src/users/cb9206/nile/dist/tools.jar:/src/users/cb9206/nile/dist/cop.jar:
/src/users/cb9206/nile/dist/mlm.jar:/tools/junit3.7/junit.jar:
/tools/jakarta-ant-1.5Beta1/lib/ant.jar:/tools/jakarta-ant-1.5Beta1/lib/optional.jar:
/tools/jakarta-ant-1.5Beta1/lib/xercesImpl.jar org.apache.tools.ant.taskdefs.
optional.junit.JUnitTestRunner com.sun.srs.tools.Suite filtertrace=true
haltOnError=false haltOnFailure=false formatter=org.apache.tools.ant.taskdefs.
optional.junit.XMLJUnitResultFormatter

Here's my result:

neurosis% /tools/J2SE/j2sdk1_3_1_02/jre/bin/java -classpath 
/src/users/cb9206/nile/config:/src/users/cb9206/nile/thirdparty/lib/cos.jar:/src/users/cb9206/nile/thirdparty/lib/servlet-2_3.jar:/src/users/cb9206/nile/thirdparty/lib/hsqldb.jar:/src/users/cb9206/nile/thirdparty/lib/log4j-1.2rc1.jar:/src/users/cb9206/nile/thirdparty/lib/jakarta-oro-2.0.5.jar:/src/users/cb9206/nile/thirdparty/lib/java-getopt-1.0.9.jar:/src/users/cb9206/nile/dist/uuid.jar:/src/users/cb9206/nile/dist/util.jar:/src/users/cb9206/nile/dist/tools.jar:/src/users/cb9206/nile/dist/cop.jar:/src/users/cb9206/nile/dist/mlm.jar:/tools/junit3.7/junit.jar:/tools/jakarta-ant-1.5Beta1/lib/ant.jar:/tools/jakarta-ant-1.5Beta1/lib/optional.jar:/tools/jakarta-ant-1.5Beta1/lib/xercesImpl.jar

org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner com.sun.srs.tools.Suite filtertrace=true
haltOnError=false haltOnFailure=false formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/Node
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:183)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)
neurosis%

Let me know if it's something I'm doing wrong and what I need to do
differently.

-- 
					Chuck Brunson
					x56912
					719-277-6912
					charles.brunson@sun.com
					AIM: chuck9206


Charles Brunson wrote:

> Since switching to ant 1.5 Beta1, I've started seeing the following
> error running junit tasks. We're using junit 3.7. I'm wondering if
> others are seeing this as well.
> 
> test:
>     [junit] Running com.sun.srs.tools.Suite
>     [junit] Exception in thread "main" 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:183)

> 
>     [junit]     at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.createAndStoreFormatter(JUnitTestRunner.java:550)

> 
>     [junit]     at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:495)

> 
>     [junit] TEST com.sun.srs.tools.Suite FAILED
> 
> 
> 
> 



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


Mime
View raw message