当前位置: 代码迷 >> 综合 >> 配置Tomcat出现SEVERE: Failed to initialize connector [Connector[AJP/1.3-8080]]
  详细解决方案

配置Tomcat出现SEVERE: Failed to initialize connector [Connector[AJP/1.3-8080]]

热度:8   发布时间:2023-11-17 08:22:37.0

配置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, 并把它改为其他的端口号(如下图所示)

  1. 双击“Tomcat v8.5”,出现页面
  2. 将右侧的Port中的AJP/1.3 改为8081(或者其他的数字均可)
    在这里插入图片描述
  相关解决方案