tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Deploying mysql-connector-java-5.1.7-bin.jar in /WEB-INF/lib
Date Sun, 23 Nov 2008 11:25:43 GMT
Iñigo Mediavilla Saiz wrote:
> When
> I try to access to a Database through the connector it fails if I leave
> it inside WEB-INF\lib, but everything works if I copy the jar in the
> lib folder of the apache distribution. Is there any other way to let a
> web app access to a lib without having to copy the jar in apache\lib?

You can't use Tomcat's built in (DBCP based) connection pooling without placing
the JDBC driver jar in CATALINA_HOME/lib.

To do what you want, you need to include your own copy of DBCP with your web app
and do all the pool configuration in your web app.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message