Tomcat成功啓動,但是涉及Servlet的任何操作都會給出下面的錯誤。Eclipse Tomcat SEVERE:加載WebappClassLoader時出錯
我懷疑問題在於TomCat正在WEB-INF文件夾中尋找類,儘管我不知道Eclipse在哪裏編譯和隱藏它們(當然不是)。我該如何解決?
SEVERE: Error loading WebappClassLoader
context: /MyEclipseProject
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
[email protected]
servlet.StartServlet
java.lang.ClassNotFoundException: servlet.StartServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:827)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
已經閱讀:
Error loading WebappClassLoader in Tomcat
這是非常有用的: http://www.coderanch.c om/t/474423/vc/Why-ecplise-doesn-create-classes 雖然還沒有完全解決問題 – xxjjnn