tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Isaacs <>
Subject RE: Tomcat Servlet Directory
Date Thu, 20 Sep 2001 14:06:25 GMT
Handling for WEB-INF/classes and WEB-INF/lib is mandated by
the Servlet 2.2 and later specifications.  If you want your
servlets, or other classes, to be accessible *only* to that
web application, then these are the only places available that
do this.

However, you may place servlets on your CLASSPATH.  These
servlets will be available in all web applications.  Thus,
you may put "C:\public_html\myServlets" on your CLASSPATH
and put servlets there.

The important thing to note about doing this is that
the "CLASSPATH" servlets will be loaded by the "application"
classloader.  The means that these servlet will *NOT* be
able to use any classes from any web application's
WEB-INF/classes or WEB-INF/lib directories.  This may affect
the suitability of putting servlets on the CLASSPATH.

Hope this helps.

> -----Original Message-----
> From: Hoggatt Matt - mahogg []
> Sent: Thursday, September 20, 2001 9:34 AM
> To: ''
> Subject: Tomcat Servlet Directory
> After I installed Tomcat 3.2.3, my servlet directory is C:\Program
> Files\Apache 
> Group\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes.
> Now I want to change it to, or add the directory 
> C:\public_html\myServlets.
> I've tried and tried and I cannot figure this out.  How is this done?
> -Matt

View raw message