重启Tomcat服务器7时出错?

时间:2016-08-05 21:44:01

标签: java tomcat

第一个错误:

SEVERE: Failed to initialize end point associated with ProtocolHandler ["ajp-apr-8009"]
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted. 

引起:

java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.

第二次错误

SEVERE: Failed to initialize connector [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Failed to initialize component  [Connector[AJP/1.3-8009]]

引起:

org.apache.catalina.LifecycleException: Protocol handler initialization failed

我在Netbeans中重启Tomcat服务器7并没有做任何事情,我也使用匹配版本的Java SE 7。 我还交叉检查了server.xml,发现port和redirectPort的值不应该相同。

<Server port="5005" shutdown="SHUTDOWN">
<Connector connectionTimeout="20000" port="5000" protocol="HTTP/1.1" redirectPort="8443"/>
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>

1 个答案:

答案 0 :(得分:2)

如评论中所述,OP palak sharma表示问题是另一个进程已在端口上运行:8009。杀死在端口8009上运行的进程后,错误消失,tomcat服务器启动时没有出现任何错误。