tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Tomcat managed connections (DBCP) with driver in web application.
Date Tue, 09 Oct 2012 21:46:06 GMT
Hash: SHA1


On 10/9/12 5:19 PM, Jeremy Heiler wrote:
> 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 fail.

Are you sure you're not just getting the "global" driver and it
happens to work properly?

- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Mozilla -


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

View raw message