tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: dbcp error with java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource
Date Thu, 09 Oct 2008 16:35:37 GMT
> From: Ziggy [mailto:ziggy25@gmail.com]
> Sent: 2008 October 09, Thursday 11:12
> org.apache.tomcat.dbcp.dbcp.PoolingDataSource
>
> I have placed the jdbc driver on both the following directories
> [code]
> $TOMCAT_HOME/common/lib/
> $APPLICATION_ROOT_DIR/WEB-INF/lib/
> [/code]

Never, never, never put the same class(es) in more than one location in a given branch of
the classloader tree.

Since you're using Tomcat to manage the DB connection pool, the .jar file containing the JDBC
driver classes must be placed in common/lib.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message