Hello Tomcat Users, up until recently it was my firm belief that the ONLY way to get database connection pooling (DBCP) working was to place the JDBC driver JARS in ${CATALINA_HOME}/common/lib and define the DBCP resouce in the context (my preference is for META-INF/context.xml in the WAR).
That was until I tried to place both the commons-dbcp-*.jar and my JDBC driver jar in my WAR under WEB-INF/lib. If I make sure to specify the factory attribute in my context.xml to be "org.apache.commons.dbcp.BasicDataSourceFactory", lo and behold it works! I can finally deploy all my dependencies in my WAR. When you think of how the classpath hierarchy works in a web app it's no surprise really. Question: is there any downside to this approach? I am asking because I hadn't come across this as a possibility anywhere, so I am wondering... I would be very greatful of any feedback and/or suggestions. Regards, Florian -- View this message in context: http://www.nabble.com/Stuff-the-DBCP-and-JDBC-jars-in-the-WAR%3A-is-there-a-downside--tp15502149p15502149.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]