Server Tomcat v8.0 Server at localhost failed to start.

发现最下面的报错是Failed to destroy end point associated with ProtocolHandler [“ajp-nio-8009”]

出现这种问题,一般有以下几种原因

原因1 :

新写的Servlet没有在web.xml中注册

原因2:

创建的是class,其实应该创建Servlet
应该在web-inf下的web.xml配置一下,但是我没有这么做,而是用了注解的方式,实际上是不起作用的。

原因3:

注解里的urlPattern的值没有以"/"开头,也会出现这种问题。

Server Tomcat v8.0 Server at localhost failed to start.