問題:javax.servlet.ServletException: Wrapper cannot find servlet class vko.userhome.UserHomeServlet or a class it depends on org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877) org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594) org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) java.lang.Thread.run(Thread.java:662)
root causejava
java.lang.ClassNotFoundException: vko.userhome.UserHomeServlet org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877) org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594) org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) java.lang.Thread.run(Thread.java:662)
解決:servlet的路徑不匹配!修改過來ok!apache
「Error loading WebappClassLoader」,一直報這個錯誤,從網上也找了好多資料,看到一個高手說的這個方法:查看你的Servlet是否放置到正確的目錄,配置是否正確!Web-INF etc!試了下,ok!tomcat
這裏隨手作個筆記!哈哈app
本人文檔純屬我的總結使用,若有不對的地方,還望親愛的小夥伴們勿噴!spa