File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with database connections between Java and Oracle

 
chirag rana
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33691
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chirag,
You need the drivers jar file (or zip file) in the classpath.
 
Ameya Thakur
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chirag ,

Can you plz post the code of the jsp

Regards,

Ameya
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic