It's not a secret anymore!*
The moose likes JDBC and the fly likes Cannot create JDBC driver of class '' for connect URL 'null' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Cannot create JDBC driver of class Watch "Cannot create JDBC driver of class New topic
Author

Cannot create JDBC driver of class '' for connect URL 'null'

Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
Hi,

I have a shared tomcat server and my application is running in that server. I have placed my context.xml and web.xml in WEB-INF directory and while trying to create the connection from datasource JNDI name am getting the below error. please assist me to resolve.

It's MYSQL database, I placed my mysql jar in application lib directory.


Thanks
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hi Meet,

Have a look at this post on the serverside maybe
they have solved your problem already.


"Eppur si muove!"
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
Thanks for the link.. After copying my context.xml to server 'conf' folder, I got driver not found error then I copied my driver jar file to server lib then it's working fine.. But in case of shared tomcat server, we don't have access to conf folder. Also many applications were deployed on the server then how we will place the context.xml in the conf folder.

Please advice
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot create JDBC driver of class '' for connect URL 'null'
 
Similar Threads
Call servlet from action class
I am creating a object of actionform in action class ..but error is showing that due to another form
Struts 1.1 database connection exception
SQL Error suring server startup
Mqsql DB connection Issue