wood burning stoves 2.0*
The moose likes JDBC and the fly likes Driver not found issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Driver not found issue" Watch "Driver not found issue" New topic
Author

Driver not found issue

Joseph Smithern
Ranch Hand

Joined: Feb 11, 2006
Posts: 89
I need to create a site that will only have database updates around 1 or 2 times a day.
My Oracle driver is loaded in the Tomcat lib folder and I have connected to it before in other projects but cant connect to it using the below attempt.

For my connection I keep getting StackTrace error saying: jdbcDriver not found

Servlet:

DbManager class:


Db update class:


Please advise.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

That's odd, because the only place that string occurs in the code you posted is here:

And the getInitParameter() method of ServletConfig won't throw any exceptions, it just returns null if there's no such parameter configured. Also, usually there's a lot more to a stack trace than that. It would help if you posted the rest of it. And if you could scan your code for the string "jdbcDriver" to see what else might be printing that string which you didn't post here.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Driver not found issue
 
Similar Threads
java.sql.SQLException: Server configuration denies access to data source
JDBC- ORACLE
nullpointerexception
Singleton Connection Class
BeanInstantiationException