servlet中找不到类的异常

时间:2014-09-10 07:47:09

标签: classnotfoundexception

12:50:30,311 ERROR [stderr](http - 127.0.0.1-8080-1)java.lang.ClassNotFoundException:来自[Module“deployment.santosh.war:main”的oracle.jdbc.driver.OracleDriver来自服务模块加载器]

12:50:30,311在org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)的错误[stderr](http - 127.0.0.1-8080-1)

12:50:30,311 ERROR [stderr](http - 127.0.0.1-8080-1)atg.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

12:50:30,312 ERROR [stderr](http - 127.0.0.1-8080-1)atg.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)

12:50:30,312 ERROR [stderr](http - 127.0.0.1-8080-1)atg.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

12:50:30,312 ERROR [stderr](http - 127.0.0.1-8080-1)atg.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

12:50:30,312错误[stderr](http - 127.0.0.1-8080-1)at java.lang.Class.forName0(Native Method)

12:50:30,313 java.lang.Class.forName(未知来源)的ERROR [stderr](http - 127.0.0.1-8080-1)

12:50:30,313 ERROR [stderr](http - 127.0.0.1-8080-1)at com.cluster.action.CheckServlet2.doGet(CheckServlet2.java:43)

12:50:30,313错误[stderr](http - 127.0.0.1-8080-1)at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

12:50:30,313错误[stderr](http - 127.0.0.1-8080-1)at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

12:50:30,313 ERROR [stderr](http - 127.0.0.1-8080-1)org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

12:50:30,314 ERROR [stderr](http - 127.0.0.1-8080-1)org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

12:50:30,314 ERROR [stderr](http - 127.0.0.1-8080-1)org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

12:50:30,314 ERROR [stderr](http - 127.0.0.1-8080-1)org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

12:50:30,314 ERROR [stderr](http - 127.0.0.1-8080-1)org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)

12:50:30,314 ERROR [stderr](http - 127.0.0.1-8080-1)org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)

12:50:30,315 ERROR [stderr](http - 127.0.0.1-8080-1)atg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

12:50:30,315 ERROR [stderr](http - 127.0.0.1-8080-1)org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

12:50:30,315 ERROR [stderr](http - 127.0.0.1-8080-1)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

12:50:30,315 ERROR [stderr](http - 127.0.0.1-8080-1)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

12:50:30,316 ERROR [stderr](http - 127.0.0.1-8080-1)at org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:667)

12:50:30,316 ERROR [stderr](http - 127.0.0.1-8080-1)at org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:951)

12:50:30,316 java.lang.Thread.run(未知来源)的错误[stderr](http - 127.0.0.1-8080-1)

1 个答案:

答案 0 :(得分:0)

那是因为你的类路径中没有ojdbc.jar。从here获取它,将其添加到您的类路径