tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Heiler <>
Subject Re: Tomcat managed connections (DBCP) with driver in web application.
Date Tue, 09 Oct 2012 21:19:39 GMT
On Tue, Oct 9, 2012 at 4:56 PM, Andrew Todd <> wrote:
> On Tue, Oct 9, 2012 at 10:37 AM, Jeremy Heiler <>
> wrote:
> > Every resource I've read thus far has said that the driver jar must be
> > in $CATALINA_HOME/lib or DBCP wont work.
> Can you provide a link for that? I've been just fine bundling the
> Oracle 11 library inside my .war file.

"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/lib
directory, which makes the driver available both to the resource
factory and to your application."

My expectation is that the jars in the WAR file are not available to
the Tomcat internal classes.

> For that matter, I actually pull in the DBCP artifact from Maven,
> because I'm developing on Grails and their embedded Tomcat instance
> for development doesn't (or didn't, at least) contain DBCP.

In that case, I would expect my test case to work. However, since I am
still using Tomcat's DBCP machinery, I would expect my test case to

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message