I'm trying to run an application on Tomcat. It fails to run, throwing a null driver class exception. I've already copied a jar file with a Db2 driver class (I'm using Db2 database) into Tomcat's /common/lib directory. But it still throws the same exception. What might be the problem here? The exception is: java.sql.SQLException Cannot load JDBC driver class 'null' at org.apache.commons.dbpc.BasicDataSource.createDataSource(...) at org.apache.commons.dbpc.BasicDataSource.getConnection(...) etc...
--------------------
nnd
William Brogden
Author and all-around good cowpoke
Rancher
as a null reference being supplied in your code where you expect to have a String with a fully qualified class name. If it was my problem I would try to print out or log the name of the driver class just before you call createDataSource. Bill