tomcat报错:Wrapper cannot find servlet class ...问题解决
2016-11-05 08:52
721 查看
tomcat发布工程时,在浏览器输入正确的地址,遇到如下问题:
HTTP Status 500 -
javax.servlet.ServletException: Wrapper cannot find servlet class xxx or a class it depends on
....
....
java.lang.ClassNotFoundException: xxx
....
...
问题分析:
web.xml文件中<servle-mapping>和<servlet-class>内容是否配置错误,
1.两者name是否一致 2.配置的class是否存在 3.servlet类是否未通过编译,以至于无法找到servlet类;
方法:查看工程的class目录下对应servlet类的class文件,看是否已经编译存在。
通常会出现不存在编译的class文件。
解决方案:
如果未开启Build Automaticlly,则eclipse开启Project->Bulid Automatically,再重新部署发布,若无其他错误,通过编译后,则可以正常运行。
或者每次发布部署时,手动点击Project--Build Project构建项目!
注:Build Automaticlly是用于自动构建项目
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
您可能感兴趣的文章:
- IntelliJ IDE运行Tomcat报错解决办法
- 解决应用启动失败但tomcat不报错的方法
- Tomcat启动时报错:java.lang.UnsatisfiedLinkError的解决
- Tomcat报错: JDBC unregister 解决办法
- Tomcat报错:HTTP Status 500 (Wrapper cannot find servlet class)解决办法
- CentOS 6.5上的Tomcat启动报错问题解决方法
- Tomcat ssl报错Connector attribute SSLCertificateFile must be defined when using SSL with APR解决方法
- 启动Tomcat报错Unsupported major.minor version xxx的解决方法
相关文章推荐
- 关于linux下tomcat启动出现cannot find ./catalina.sh以及cannot find setclasspath问题的解决办法
- Tomcat报错:HTTP Status 500 (Wrapper cannot find servlet class)解决办法
- javax.servlet.ServletException: Wrapper cannot find servlet class www.net.csdn.servlet.LoginServle
- [tomcat服务器启动SSM项目时问题]class path resource [smvc_servlet.xml] cannot be opened because it……
- Wrapper cannot find servlet class CounterServlet or a class it depends on
- 解决“tomcat Could not find or load main class org.apache.catalina.startup.Bootstrap”问题
- linux安装多tomcat的配置方法(常见问题:Cannot find //bin/setclasspath.sh)
- Wrapper cannot find servlet class DepServlet or a class it depends on
- Error: Wrapper cannot find servlet class XXX or a class it depends on
- IBatis配置tomcat的JNDI问题解决Cannot create JDBC driver of class '' for connect URL 'null'
- 解决Mac OS lion下(ubuntu等linux也一样)启动tomcat的Cannot find ./catalina.sh 的问题
- linux安装多tomcat的配置方法(常见问题:Cannot find //bin/setclasspath.sh)
- tomcat遇到的问题(一)Error instantiating servlet class[已解决]
- JAVA Cannot find class [×××] for bean with name '××' defined in class path resource [×××] 问题解决方法
- JDK 1.6 写Webservice时,runtime modeler error: Wrapper class com.ws.jaxws.DoSomething is not found问题的解决办法
- 搭建ssh出现问题Cannot find class [org.apache.commons.dbcp.BasicDataSource]出异常
- [转]MyEclipse第一个Servlet程序 --解决Win7系统下MyEclipse与Tomcat连接问题
- 在Linux下安装nodejs遇到Cannot find module 'npmlog'问题的解决方法
- 异常-----springmvc + ajaxfileupload解决ajax不能异步上传图片的问题。java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade cannot be cast to org.springframework.web.multipart.
- 解决spring-boot启动中碰到的问题:Cannot determine embedded database driver class for database type NONE(转)