port='8484' ...redirectPort='8484'
您试图在同一端口上打开两个监听套接字。
该redirectPort用于:
如果此连接器支持非SSL请求,并且接收到一个匹配的需要SSL传输的请求,则Catalina将自动将请求重定向到此处指定的端口号。
它需要的端口号必须与指定的端口号 不同port
解决方法这是server.xml中的连接器元素。我也尝试使用8443而不是8484,但是存在相同的错误。
<Connector SSLEnabled='true' acceptCount='100' connectionTimeout='20000' executor='tomcatThreadPool' keystoreFile='D:/.keystore' keystorePass='changeit' maxKeepAliveRequests='15' port='8484' protocol='HTTP/1.1' redirectPort='8484' scheme='https' secure='true' allowUnsafeLegacyRenegotiation='true'/>SEVERE: Error starting endpointjava.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted. at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649) at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:766) at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137) at org.apache.catalina.connector.Connector.start(Connector.java:1122) at org.apache.catalina.core.StandardService.start(StandardService.java:540) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Jan 23,2014 10:05:26 AM org.apache.catalina.core.StandardService startSEVERE: Failed to start connector [Connector[HTTP/1.1-8484]]LifecycleException: service.getName(): 'Catalina'; Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted. at org.apache.catalina.connector.Connector.start(Connector.java:1129) at org.apache.catalina.core.StandardService.start(StandardService.java:540) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
我确定没有其他应用程序正在使用端口(8484或8443)进行验证(已通过Tomcat启动错误验证)。我不确定真正的原因是什么?