File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes driver class problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "driver class problem" Watch "driver class problem" New topic

driver class problem

Nhlanhla Dlamini

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(...)

Mahesh Chalil
Ranch Hand

Joined: Jan 24, 2002
Posts: 147
which version of Db2?
Which version of JDBC?
If JDBC2.0, did you move your JDBC2.0 using useJdbc2.0 command script?
I agree. Here's the link:
subject: driver class problem
It's not a secret anymore!