wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 573
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.(ConnectionPool.java:40)
at BookStore.loginServlet.service(loginServlet.java:65)

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 classes111.zip to classes12.zip still get the same problem
Thanks for any help.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
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: 573
I have solved the problem, what I did was to place classes111.jar into WEB-INF/lib directory
I agree. Here's the link: http://aspose.com/file-tools
subject: problems with tomcat-4.0 and Oracle
Similar Threads
What is wrong with my env. setting?
Problem connecting to an Oracle database
Problem setting Oracle connection
JDBC driver for Oracle 8i, Tomcat and JDK
Weblogic Oracle JDBC Problem