aspose file tools*
The moose likes Tomcat and the fly likes Configuring Tomcat 3.3 with Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring Tomcat 3.3 with Oracle" Watch "Configuring Tomcat 3.3 with Oracle" New topic
Author

Configuring Tomcat 3.3 with Oracle

Art Smith
Ranch Hand

Joined: Dec 12, 2000
Posts: 33
Hi,
I'm having trouble getting Tomcat to use the Oracle thin drivers in the classes12.zip file.
I copied the classes12.zip file to the lib\container directory but when I run my servet I get the following error:
java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
at cmedia.queries.JDBC.connectTODatabase(JDBC.java:172)
at cmedia.ui.pages.BasePage.connectToDB(BasePage.java:78)
at cmedia.ui.pages.BasePage.(BasePage.java:65)
at cmedia.ui.pages.HomePage.(HomePage.java:26)
at cmedia.servlets.Home.doPost(Home.java:72)
at cmedia.servlets.Home.doGet(Home.java:48)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
How do I get 3.3 to recognize the classes12.zip file?
When I run my app under 3.2.1 the Oracle Drivers are fine.
Art

Arthur Smith<br />SCJP2 - SCWCD
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I haven't tried this, so I'm not sure if it will work.

But try renaming classes12.zip to classes12.jar

Just using the Windows renaming command is fine, you don't need to unzip and use the 'jar' utility.
Art Smith
Ranch Hand

Joined: Dec 12, 2000
Posts: 33
Thanks, that worked like a charm.
Art
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring Tomcat 3.3 with Oracle