tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <>
Subject Re: jndi jdbc driver location
Date Sun, 25 Aug 2002 18:56:00 GMT

I has to be in common/lib if you want to use Tomcat's JNDI or JDBC 
resources because both the server and the webapps need access to the 
driver.  The only way to do that is to have the library exist in common/lib 
as plain old lib (or, equivalently, shared/lib in Tomcat-4.1.x) only makes 
libraries available to the webapps, not the container itself.

If only your webapps need the libraries, put them in "lib" or "shared/lib" 
and if only the server needs access to the libraries put them in "server/lib".


At 02:21 PM 8/25/2002 -0400, you wrote:

>"1. Install Your JDBC Driver
>Use of the JDBC Data Sources JNDI Resource Factory requires that you make
>an appropriate JDBC driver available to both Tomcat internal classes and
>to your web application. This is most easily accomplished by installing
>the driver's JAR file(s) into the $CATALINA_HOME/common/lib directory,
>which makes the driver available both to the resource factory and to your
>can the jdbc .jar driver file be in $CATALINA_HOME/lib or does it have to
>be in common/lib to be available to the resource factory in Tomcat 4.0.4?
>Adam K
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message