Hi Tom,

Tom Baeyens wrote:
Hi,

I have a problem declaring the cactus.tasks on linux. On windows all works
fine.
Declaring the cactus.tasks results in a java.lang.NoClassDefFoundError:
junit/framework/TestListener, while the junit-3.8.1.jar is in the classpath.
I have created a minimal setup that shows the problem : to be downloaded
from http://jbpm.org/cactusproblem.zip

The only workaround I found was to put the junit-3.8.1 in the ANT_HOME/lib
folder.  I don't like that.

Yeah, I don't like it either. However, you should have trouble using even the non-Cactus <junit> task when junit.jar isn't in ANT_HOME/lib. At least it never worked for me. The only workaround AFAIK is to remove optional.jar from ANT_HOME/lib and place it on the classpath dynamically when defining the cactus tasks (together with junit.jar etc). Of course that is the problem reversed. :-/


Otherwise, I believe pretty much everyone who uses JUnit with Ant has installed junit.jar in ANT_HOME/lib. Not much that can be done about that, at least not until Ant 1.6.

-chris

I found the workaround in the mailing list archive :
http://www.mail-archive.com/[EMAIL PROTECTED]/msg03837.html
It points to http://ant.apache.org/faq.html (search for 'classloader').

Cactus version I used was
http://www.apache.org/dist/jakarta/cactus/binaries/jakarta-cactus-13-1.5-bet
a1.zip
Tried it with ant 1.5.3-1 and ant 1.5.4.  Same result both times.
My linux dist is red hat 9.

Any ideas, clues or pointers on how to solve this properly are greatly
appreciated by all jBpm users.

Regards,
Tom Baeyens
Founder jBpm.org


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to