Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

5.0.16: Deploying to common/lib from WAR

Vegard Skjefstad

2004-01-02

Replies:

Hi,

Is it possible to have a file copied to the $TOMCAT_HOME/common/lib when a
WAR-file is automatically deployed on a running instance of the Tomcat 5.0
server? I need to have jdbc.jar in this directory to get connection pooling
to work. Or maybe someone can tell me how to get pooling to work without
having to dump jdbc.jar in the common/lib directory. Without the file in
that location I get this exception:

org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class
'com.mysql.jdbc.Driver', cause: com.mysql.jdbc.Driver

Thanks a lot in advance.

Best regards,
Vegard Skjefstad

--- -- -
Vegard Skjefstad, c0d3 /\/\0nk3y
Norwegian Broadcasting Corporation
Office:    +47 23 04 78 37
Cellular:   +47 92 48 17 12
For further contact information, please visit
http://www.vegard.net/about/#contact

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.