这是抛出的异常:
SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@3d434234
controlador.GeraSequenciaServlet
java.lang.ClassNotFoundException: controlador.GeraSequenciaServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
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:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:865)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
at java.lang.Thread.run(Thread.java:636)
25/08/2011 12:26:59 org.apache.catalina.core.StandardWrapperValve invoke
+++++++++++++++++++
我已经检查了web.xml,GeraSequenciaServlet就在那里......所以我迷路了......
BTW:我在Linux Fedora 14,Phenom处理器,4GB RAM中使用Eclipse IDE。答案 0 :(得分:3)
您的课程应该转到WEB-INF/classes
。如果您正在使用eclipse WTP服务器部署,那么您应该转到Right click > Properties > Facets
,并启用“动态Web项目”。