Tomcat连接器无法启动,但端口已绑定

时间:2018-07-16 13:45:17

标签: java tomcat

尝试在端口443上启动Tomcat连接器时出现以下错误:

16-Jul-2018 09:30:08.394 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-443]]
 org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-443]]
        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)

我期望这个错误,并且知道为什么会发生。

问题在于,尽管连接器无法启动,但似乎Tomcat仍在端口443上列出,并且发送到该端口的每条消息都挂起,直到读取超时。

当连接器启动失败时,如何配置Tomcat不监听?

1 个答案:

答案 0 :(得分:1)

我无法评论...但是,仍然与server.xml文件中的端口相关的配置吗?

像这样吗?

word.reversed()

要查找443端口并进行修改吗?