tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett G. Palmer" <>
Subject Order of libraries in CLASSPATH question?
Date Thu, 14 Jun 2001 15:07:40 GMT
We are having random problems with some of our application libraries when we
deploy them in their separate contexts.  The question I have is what is the
default behavior for Tomcat to load class libraries into its CLASSPATH.  Do
libraries from the $TOMCAT_HOME/lib directory get added to the CLASSPATH
before libraries for a particular web application (e.g.
webapps/someapp/WEB-INF/lib/*) or viceversa.

I have also seen problems where my web application can't find a particular
library when it is added to the "webapps/someapp/WEB-INF/lib"  but it can
find it when it is added to the $TOMCAT_HOME/lib directory.  This particular
problem occurred when I tried to use Oracle's jdbc drivers (i.e.  I would get class not found errors when the
file was located in the WEB-INF/lib directory, but the errors went away when
I used the $TOMCAT_HOME/lib directory.

What is the recommended place for putting class libraries in the classpath
for Tomcat?  Any suggestions would be greatly appreciated.

Thanks in advance,


View raw message