On Mon, 18 Aug 2003, Johann Uhrmann <[EMAIL PROTECTED]> wrote:

> Ant complains about not being able to load the JspC class because
> the class javax.servlet.ServletContext is referenced by it and
> cannot be found.

Most probably org.apache.jasper.JspC is on your system classpath.
In that case, the classloader loading that class will be the system
classloader, which doesn't know anything about your nested <classpath>
at all.

This is related to <http://ant.apache.org/faq.html#delegating-classloader>.

In essence, you must ensure that either

(1) all classes your task needs are on the system classpath

(which is why it starts to work for you then) or

(2) no classes your task needs are on the system classpath

Any mixed setting is going to cause trouble.

Stefan

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

Reply via email to