This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
 
subject: Driver not found issue