tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harish Prabandham <Harish.Praband...@eng.sun.com>
Subject Re: Jar Files
Date Mon, 06 Dec 1999 20:23:31 GMT
Hi,


ServletClassLoader, first looks at the CLASSPATH to resolve the referenced
class, then looks at WEB-INF/classes directory and WEB-INF/lib directories.

So, if you want to add some jar file to a context, then you can add it
unexpanded
to WEB-INF/lib directory.

If you want the same jar file to be shared by multiple contexts, you can put it

in the CLASSPATH.


Thanx

Harish

Brett McLaughlin wrote:

> <stupid-question>
> Obvious how to create a web application, with WEB-INF/classes and such.  How
> do I add jars to that context so that Tomcat will reference them as well as
> the expanded classes?
> </stupid-question>
>
> Thanks,
> Brett
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message