1 Reply Latest reply: Nov 5, 2012 8:40 PM by Kmensah-Oracle RSS

    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

    958692
      I have faced this problem when i tried to connect database

      String driverName = "oracle.jdbc.oracle.OracleDriver";
      Class.forName(driverName);

      for this lines.

      my apache logs are





      Stacktrace:] with root cause
      java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
           at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
           at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:126)
           at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:186)
           at org.apache.jsp.panel_jsp._jspService(panel_jsp.java:80)
           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
           at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
           at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
           at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
           at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
           at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
           at java.lang.Thread.run(Thread.java:722)