Tomcat报错:HTTP Status 500 - Wrapper cannot find servlet class

HTTP Status 500 - Wrapper cannot find servlet class com.servlet.servlet.RegServlet or a class it depends on



type Exception report

message Wrapper cannot find servlet class com.servlet.servlet.RegServlet or a class it depends on

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class com.servlet.servlet.RegServlet or a class it depends on
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	java.lang.Thread.run(Unknown Source)

root cause

java.lang.ClassNotFoundException: com.servlet.servlet.RegServlet
	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:103)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	java.lang.Thread.run(Unknown Source)

解决方案:

在确定servlet类编写正确,及配置文件正确的情况下,仍旧出现如上问题:

准备工作:查看\WEB-INF\classes目录下是否正常生成.class文件,如未生成,继续下一步

第一步:清空project—>  clean project

第二步:清空tomcat缓存—>  对应目录\work\Catalina\localhost 下相应工程的目录文件

第三步:重新发布工程

时间: 2024-10-14 18:51:15

Tomcat报错:HTTP Status 500 - Wrapper cannot find servlet class的相关文章

Tomcat报错 HTTP Status 500 – Internal Server Error?

问题:在IDEA中编写Servlet实现类并在web.xml中配置好servlet信息之后,页面访问编写的出现了如下错误: 问题分析: 通过Root Cause可以看出是Jdk版本不匹配的问题:我的编译时候的版本和运行时的版本不一致,编译的版本是JDK11,运行时的版本是JDK8. Java虚拟机做了规定,jdk1的版本号是45,只能执行[45.0-46)之间的字节码,JDK8可执行的范围代码在[45.0-53)之间,我的版本是55,那么就是JDK11,那么只能由JDK11之后的版 本来执行.所

TOMCAT报错:HTTP Status 404 -

构建struts2工程师,tomcat报错: HTTP Status 404 - type Status report message description The requested resource is not available. Apache Tomcat/6.0.37

eclipse中以debug方式启动tomcat报错

在eclipse中debug  Tomcat报错,错误如下: FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERROR: transport error 202: connect failed: Operation timed out ERROR: JDWP Transport dt_socket failed to initiali

解决tomcat报错javax.imageio.IIOException: Can't create output stream!

启动tomcat catalina.out报错如下,登陆的时候无法显示验证码 2017-06-09 11:23:06,628 DEBUG org.springframework.web.servlet.DispatcherServlet 845 - DispatcherServlet with name 'spring-mvc' processing GET request for [/data-analysis/kaptchaImage.do]2017-06-09 11:23:06,629 D

【转】Eclipse下启动tomcat报错:/bin/bootstrap.jar which is referenced by the classpath, does not exist.

转载地址:http://blog.csdn.net/jnqqls/article/details/8946964 1.错误: 在Eclipse下启动tomcat的时候,报错为:Eclipse下启动tomcat报错:The archive: C:/Program Files(x86)/Java/jdk1.7.0_10/lib/tools.jar which is referenced by the classpath, doesnot exist. 2.原因: 这是因为我中途移动过tomcat的位

hadoop整合到web工程发布到tomcat报错

我是用的maven,至少要移出如下的jar包: <!-- hadoop相关包 --> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-core</artifactId> <version>1.0.4</version> <exclusions> <exclusion> <artifactId&

运行Tomcat报错 解决方法

运行Tomcat报错 解决方法 运行Tomcat控制台报错: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.6.0_26/jre/lib/i386/server:/usr/local/jdk1.6.0_26/jre/lib/i3

tomcat报错org.springframework.web.context.ContextLoaderListener找不到

tomcat报错org.springframework.web.context.ContextLoaderListener找不到. 最后解决办法:将jar包copy到web-inf下面的lib中. 你可以在web app libary是不是空,或者点不开. 引用网友的: http://topic.csdn.net/u/20090216/19/3c955432-e708-4338-961f-8db9db7f5df1.html 可能是jar包位置导致的. Java虚拟机是根据Java ClassLo

linux下启动tomcat报错 Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We&#39;ll add some extra randomness

INFO [localhost-startStop-1] com.mchange.v2.log.slf4j.Slf4jMLog$Slf4jMLogger$InfoLogger.log(206) | Failed to get local InetAddress for VMID. This is unlikely to matter. At all. We'll add some extra randomnessjava.net.UnknownHostException: Oracle.Linu