Possible Duplicate:
ClassCastException DataSource cannot be cast to javax.sql.ConnectionPoolDataSource
How to make tomcat-jdbc.jar work with Tomcat 6?
We have an application that was designed to be deployed in Tomcat 6 however due to fixes we did, we needed to put JDBC pool codes, that I believe only works with Tomcat 7? Since tomcat 6 is already in our production server, I may need to make JDBC pool work with Tomcat 6?
*I was doing my local development for our application and use Tomcat7 for debugging, that I forgot that we use Tomcat6 in production**
Update:
When I run in tomcat 6 I get this exception:
java.lang.ClassCastException: org.apache.tomcat.jdbc.pool.DataSource cannot be cast to javax.sql.ConnectionPoolDataSource
When it works without problems in Tomcat7...