TomCat无法启动提示The required Server component failed to start so Tomcat is unable to start.

查找控制台中cause by发现有如下语句The servlets .. are both mapped to the url-pattern [/IndexServlet] which is not permitted

解决方案是删除web.xml文件。或者删除@webServlet

原因:

新版本的eclipse不会去自己生成web.xml,也不需要自己去配置xml文件。

eclipse已经有另外一种好的解决方案:利用@WebServlet annotation

所以你重复配置了这个。

整了半天。。。。

猜你喜欢

转载自blog.csdn.net/qq_45098495/article/details/107231244