ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Setting classpath for Taskdef
Date Mon, 10 Dec 2001 07:11:30 GMT
On Mon, 10 Dec 2001, William Ferguson <william_ferguson@versata.com>
wrote:

> optional.jar is already in %ANT_HOME%\lib and it finds it OK.

And that's the problem.

You load the task implementation from the system classpath - and the
system classloader doesn't know about j2ee.jar.  This is Java's model
of delegating classloaders (Ant will always consult the system
classloader first).

The only fix:  (1) remove the task implementation from the system
classpath (remove optional.jar from ANT_HOME/lib or remove the classes
in question from that jar) and (2) add the task implementation to your
nested classpath element of the taskdef.

Stefan

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


Mime
View raw message