Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring Tomcat 3.3 with Oracle

 
Art Smith
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that worked like a charm.
Art
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic