• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Marshal
Posts: 28226
95
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic