In case you get the exception Could not load resource factory class when trying to retrieve the Connection object from the JDBC connection resource pool based on the factory class org.apache.tomcat.jdbc.pool.DataSourceFactory make sure to check if tomcat-jdbc.jar is installed in the tomcat/lib directory. Please note that this file is not installed by default on most *nix systems. You can download tomcat-jdbc.jar from Maven or other sources.
Pingback: Add Connection Pool with auto connection cleanup functionality for Tomcat 7 and MySQL | Matthias Kerstner
Pingback: Add Connection Pool with auto connection cleanup functionality for Tomcat 7 and MySQL - Matthias Kerstner