This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Tomcat and the fly likes driver class problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic
Author

driver class problem

Nhlanhla Dlamini
Greenhorn

Joined: Jul 31, 2002
Posts: 12
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 into Tomcat's /common/lib directory. But it still throws the same exception. What might be the problem here? (I would appreciate a detailed explanation).
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
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

This is a repeated question, and will be continued here
 
wood burning stoves
 
subject: driver class problem
 
It's not a secret anymore!