Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

java.sql.SQLException: Cannot load JDBC driver class 'null'

Riaan Oberholzer

2003-06-18


I cannot seem to set up a datasource correctly. I get
the "java.sql.SQLException: Cannot load JDBC driver
class 'null'" exception. I have read numerous threads
with things to check, but still get it. I deploy my
application using ant and the catalina-ant.jar.

I have the mysql jar in the /common/lib directory
The server.xml is setup correctly (url, driverclass,
etc)
So is the web.xml

I have checked and double checked, no luck. If someone
who posted this earlier and eventually got it fixed
can maybe send me a step-by-step solution or things to
look for, I would appreciate it.

Why can't I set up a general datasource that can be
used by all applications and does not need to be
configured in the web.xml? And why should I configure
the datasource in server.xml and not the admin console?

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.