1

Tomcat - ClassCastException DataSource cannot be cast to javax.sql.ConnectionPoolDataSource

view story
linux-howto

http://serverfault.com – When I migrated my web application from Tomcat7 to Tomcat6 I'm getting this exception: java.lang.ClassCastException: org.apache.tomcat.jdbc.pool.DataSource cannot be cast to javax.sql.ConnectionPoolDataSource When I try to run my webapp (in Tomcat6) that use tomcat jdbc pool that seamlessly work with Tomcat7 I have included these jars already in tomcat 6 lib folder: tomcat-jdbc.jar tomcat-juli.jar What could be the problem? Configuration: <Resource name="jdbc/MyDBHrd" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.Dat (HowTos)