Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and the fly likes Problem with database connections between Java and Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem with database connections between Java and Oracle " Watch "Problem with database connections between Java and Oracle " New topic
Author

Problem with database connections between Java and Oracle

chirag rana
Greenhorn

Joined: Aug 05, 2004
Posts: 5
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

Joined: May 26, 2003
Posts: 30596
    
154

Chirag,
You need the drivers jar file (or zip file) in the classpath.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ameya Thakur
Ranch Hand

Joined: Feb 04, 2004
Posts: 43
Chirag ,

Can you plz post the code of the jsp

Regards,

Ameya
 
GeeCON Prague 2014
 
subject: Problem with database connections between Java and Oracle