• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Driver not found issue

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 28368
99
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic