ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Classloader issues?
Date Mon, 18 Aug 2003 09:53:14 GMT
On Mon, 18 Aug 2003, Johann Uhrmann <johann.uhrmann@xpecto.com> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message