配置Tomcat出现下面问题
SEVERE: Failed to initialize connector [Connector[AJP/1.3-8080]]org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.3-8080]]org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.3-8080]]at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)at org.apache.catalina.startup.Catalina.load(Catalina.java:632)at org.apache.catalina.startup.Catalina.load(Catalina.java:655)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failedat org.apache.catalina.connector.Connector.initInternal(Connector.java:995)at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)... 12 more
我们发现是端口号冲突
因此: 我们需要找到AJP/1.3-8080, 并把它改为其他的端口号(如下图所示)
- 双击“Tomcat v8.5”,出现页面
- 将右侧的Port中的AJP/1.3 改为8081(或者其他的数字均可)