tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerome Lacoste <>
Subject DBCP in Tomcat 5.0: must deploy some artifacts in /common/lib (classes) ?!
Date Tue, 27 Jul 2004 19:33:23 GMT

I am deploying a J2EE app in Tomcat 5.0.27. The application uses

I've found out that if I don't put the jocl file AND the DB drivers in
the $CATALINA_HOME/common/lib/ (classes) directory, the DBCP would fail.

Either the config file is not found

Caused by: java.sql.SQLException: Configuration file not found
        at org.apache.commons.dbcp.PoolingDriver.getConnectionPool
        at org.apache.commons.dbcp.PoolingDriver.connect
        at java.sql.DriverManager.getConnection(
        at java.sql.DriverManager.getConnection(

of the drivers are not found (even if registered manually) or .

Caused by: java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(
        at java.sql.DriverManager.getConnection(
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject
        at org.apache.commons.dbcp.PoolingDriver.connect

I've tried to put those in the WEB-INF/lib/ (classes) and the
shared/lib/ (classes) but none solution worked.

That sounds like a ClassLoader issue to me, but according to the Tomcat
5.0 doc, I am doing the right thing.

Putting them in common/lib is a workaround I can accept now, but not for

I am at a loss then. Is that problem specific to DBCP? Any idea?



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

View raw message