Home > Back-end >  Directly in the Java class testing can connect to the Oracle database, the Servlet calls even the dr
Directly in the Java class testing can connect to the Oracle database, the Servlet calls even the dr

Time:05-27

This error:
 Java. Lang. ClassNotFoundException: oracle.. JDBC driver. OracleDriver 
The at org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1358)
The at org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1180)
The at Java. Lang. Class. ForName0 (Native Method)
The at Java. Lang. Class.forname (264) Class. Java:
At com. SanJin. Utils. StockUtil. Getconn (20) StockUtil. Java:
At com. SanJin. Dao. StockDaoImpl. FindMA (StockDaoImpl. Java: 41)
At com. SanJin. Dao. StockServlet. DoGet (StockServlet. Java: 26)
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 626)
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 733)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 231)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
At org, apache tomcat, websocket server WsFilter. DoFilter (WsFilter. Java: 52)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166)
The at org. Apache. Catalina. Core. StandardWrapperValve. Invoke (StandardWrapperValve. Java: 199)
The at org. Apache. Catalina. Core. StandardContextValve. Invoke (StandardContextValve. Java: 96)
The at org. Apache. Catalina. The authenticator. AuthenticatorBase. Invoke (AuthenticatorBase. Java: 543)
The at org. Apache. Catalina. Core. StandardHostValve. Invoke (StandardHostValve. Java: 139)
The at org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 81)
The at org. Apache. Catalina. Valves. AbstractAccessLogValve. Invoke (AbstractAccessLogValve. Java: 690)
The at org. Apache. Catalina. Core. StandardEngineValve. Invoke (StandardEngineValve. Java: 87)
At org. Apache. Catalina. Connector. CoyoteAdapter. Service (343) CoyoteAdapter. Java:
At org. Apache. Coyote. Http11. Http11Processor. Service (615) Http11Processor. Java:
The at org. Apache. Coyote. AbstractProcessorLight. Process (AbstractProcessorLight. Java: 65)
The at org. Apache. Coyote. AbstractProtocol $ConnectionHandler. Process (AbstractProtocol. Java: 818)
At org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun NioEndpoint. Java: (1626)
The at org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase. Java: 49)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1142)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 617)
At org, apache tomcat. Util. Threads. TaskThread $WrappingRunnable. Run (61) TaskThread. Java:
The at Java. Lang. Thread. The run (Thread. Java: 748)

I see online said many of them did not import the jar package, but I import, and directly use to test the Java classes can connect to the database and access to the database data
Find a lot of posts are almost answered, did not resolve my problem,
Hope everybody who help, really head all big

  • Related