tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: WEB-INF/lib
Date Thu, 26 Oct 2000 07:23:36 GMT
Kitching Simon wrote:

> Yes, but as Craig pointed out in a correction
> to an earlier email of mine, what tomcat
> does when starting a context is not
> to manipulate the classpath, but to
> create & manipulate a ClassLoader.
> Changes to the path used by the
> ClassLoader will not be visible in
> the CLASSPATH system property.
> Therefore, the classes in WEB-INF/classes,
> and all the jars in WEB-INF/lib will be
> accessable via the ClassLoader, but
> those directories/libs will not be
> in the CLASSPATH.

One other thing to watch for is if your classes are in packages.  Tomcat follows
all of the standard rules about class placement that any other Java program
does.  What it means here is that if you have a class named:


then you need to have the corresponding file in


Craig McClanahan

View raw message