problems with tomcat-4.0 and Oracle

Tony Evans

Ranch Hand

Posts: 598

1

posted 14 years ago

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. .;C:\jdk1.3.1_04\lib\tools.jar; C:\j2sdkee1.3.1\lib\j2ee.jar; C:\oracle\ora90\jdbc\lib\classes111.zip; C:\projects\jakarta-Tomcat-4.0\bin\bootstrap.jar I changed classes111.zip to classes12.zip still get the same problem Thanks for any help. Tony

William Brogden

Author and all-around good cowpoke
Rancher

Posts: 13078

6

posted 14 years ago

As I recall, Tomcat 4 changed the way that servlets find classes - there should be a discussion of this in the online documentation. Bill

Tony Evans

Ranch Hand

Posts: 598

1

posted 14 years ago

I have solved the problem, what I did was to place classes111.jar into WEB-INF/lib directory