• 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

Problem with database connections between Java and Oracle

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Respected Sir,
I am facing the problem in registering the driver of Oracle when I run the application from Tomcat 4.0.I have prepared a jsp through which I m sending the values of driver,url,userid and password to servlet which dispatches the request to bean in which I have written the code for connection with the database but when I execute this application using Tomcat it gives me ClassNotFound exception on the command prompt where the Tomcat server is running.Should I need to set the path in the config file of Tomcat and put the values of drivers,url,id and password.Please tell me the solution for this problem as I have been stuck up in my project due to this problem.

Chirag.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chirag,
You need the drivers jar file (or zip file) in the classpath.
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chirag ,

Can you plz post the code of the jsp

Regards,

Ameya
 
reply
    Bookmark Topic Watch Topic
  • New Topic