The moose likes Tomcat and the fly likes null driver class exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic
Author

null driver class exception

Nhlanhla Dlamini
Greenhorn

Joined: Jul 31, 2002
Posts: 12
I'm trying to run an application on Tomcat. I get the following exception:
java.sql.SQLException: Cannot load JDBC driver class 'null'
at org.apache.commons.dbcp.BasicDataSource.createDataSource(...)
at org.apache.commons.dbcp.BasicDataSource.getConnection(...)
etc...
What's the problem?


nnd
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

you haven't configured your JNDI DataSource correctly.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

This question was repeated in another post here
 
 
subject: null driver class exception
 
Threads others viewed
JDBC in SessionBean
driver class problem
driver class problem
driver class problem
driver class problem
MyEclipse, The Clear Choice