ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: junit problem with ant 1.5Beta1
Date Fri, 03 May 2002 21:01:55 GMT

----- Original Message -----
From: "Charles Brunson" <>
To: "ant-dev" <>
Sent: Friday, May 03, 2002 12:35 PM
Subject: Re: junit problem with ant 1.5Beta1

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

Its a classpath problem; I've hit it too. I dont think it is necessarily a
1.5 problem; it may have existed before. And we dont have it fully tracked
down to the root cause. (see the mails titled "
Crimson hard coded into junit" in the cool new ant-dev mail archive :

> Exception in thread "main" java.lang.NoClassDefFoundError:
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(
> at
> at
> at
> neurosis%

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

problem is that either there is no jaxp api stuff in your
looks like the resultformatter is operating inside the classpath used for
the actual junit tests; if it cant find jaxp+xerces or crimson things fail.

1. try setting fork = true
2. add an xml parser to the runtime classpath

BTW, do you have j2ee on your CP? And if so what version?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message