This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes problems with tomcat-4.0 and Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

problems with tomcat-4.0 and Oracle

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 588
when running the following code in my servlet.
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
I get the following error :
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
at BookStore.ConnectionPool.(
at BookStore.loginServlet.service(

The code does work for my standalone applications so the problem
must be with running my oracle8i with tomca-4.0t, or even my path settings.
I changed to still get the same problem
Thanks for any help.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13001
As I recall, Tomcat 4 changed the way that servlets find classes - there should be a discussion of this in the online documentation.
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 588
I have solved the problem, what I did was to place classes111.jar into WEB-INF/lib directory
Have you checked out Aspose?
subject: problems with tomcat-4.0 and Oracle
It's not a secret anymore!