tomcat启动问题排查

遇到tomcat错误时不一定是tomcat的配置问题,还有可能是项目的配置问题。检查下xml的servlet配置是不是出了问题。


tomcat8.0使用注解的方式帮我注册了servlet了,这时候已经不需要web.xml手动注册了。注释掉就可以了。

其他解决流程

1.Clean project & server 即clean项目和tomcat server,必要时重启eclipse或电脑

2.Remove .snap file from this directory
.metadata.pluginsorg.eclipse.core.resources
即删除对应目录下的.snap文件,这个文件一般在关闭eclipse时会自动消失,所以一般没问题

3.Remove temp file from this directory
.metadata.pluginsorg.eclipse.wst.server.core
即删除项目缓存文件
例如:E:myworkspace.metadata.pluginsorg.eclipse.wst.server.core 删除所有temp*(temp0,temp1等)文件夹后重启eclipse

参考资料:
![https://www.cnblogs.com/yuqinweb/p/5468025.html]
![https://www.cnblogs.com/zdz8207/p/java-tomcat-server-core.html]

原文地址:https://www.cnblogs.com/zzc2018/p/10079561.html