JDBC Datasource issues with Tomcat 6.0.18 after reload – Cannot create JDBC driver of class

I started receiving this weird connection pool issues with Tomcat after I did a reload of a webapp using the Reload ant task.

Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ‘oracle.jdbc.OracleDriver’ for connect URL ‘jdbc:oracle:thin:@witte-xp.biperf.com:1521:XE’
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)

Looks like there are some issues with Tomcat classloader after a reload. So I put in the ojdbc14.jar under WEB-INF/lib directory of the webapp and it fixed the issue.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: