-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeremy,
On 10/9/12 5:19 PM, Jeremy Heiler wrote: > On Tue, Oct 9, 2012 at 4:56 PM, Andrew Todd > <andrew.todd...@gmail.com> wrote: >> >> On Tue, Oct 9, 2012 at 10:37 AM, Jeremy Heiler >> <jeremyhei...@gmail.com> 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. > > http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html#JDBC_Data_Sources > > "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 -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlB0mx4ACgkQ9CaO5/Lv0PAXigCghaBSe7FK+AR7okmwG0UWymSH pxAAoI0C5kKt1WpnA2FrahSd5k/V4cVc =iK4S -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org