On Mon, 10 Dec 2001, William Ferguson <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to