tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Thomson <>
Subject Re: Why does servlet need to be in a subdir of WEB-INF/classes?
Date Thu, 19 Apr 2001 13:10:43 GMT
Tomcat 3.2 will load servlets from the classpath. I believe that tomcat
3.3 will not do this out of the box, but you will be able to change the
startup scripts to enable it.

"Lu, Spencer" wrote:
> Hi,
> I've noticed that a servlet class invoked by Tomcat must reside in a
> subdirectory of <docBase>/WEB-INF/classes.  Ideally I would like to be able
> to place my servlet class in a directory that is not under WEB-INF/classes.
> Is there any way to do this without changing the Tomcat source and
> recompiling it?  If not, does anyone know why the developers coded Tomcat
> this way, instead of just loading the servlet from a directory in the
> classpath?  Just curious.  Thanks.
> Spencer

View raw message