First error:
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.
Caused by:
java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
Second error
SEVERE: Failed to initialize connector [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]]
Caused by:
org.apache.catalina.LifecycleException: Protocol handler initialization failed
I am doing nothing just restarting Tomcat server 7 in Netbeans and also I'm using the matched version of Java SE which is 7.
Also I have cross- checked the server.xml
to find out that the value of port and redirectPort should not be same.
<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"/>