title: Errors while restarting Tomcat server 7?
body: <p><strong>First error:</strong></p>
  
  <pre><code>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. 
  </code></pre>
  
  <p><em>Caused by:</em></p>
  
  <pre><code>java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
  </code></pre>
  
  <p><strong>Second error</strong></p>
  
  <pre><code>SEVERE: Failed to initialize connector [Connector[AJP/1.3-8009]]
  org.apache.catalina.LifecycleException: Failed to initialize component  [Connector[AJP/1.3-8009]]
  </code></pre>
  
  <p><em>Caused by:</em></p>
  
  <pre><code>org.apache.catalina.LifecycleException: Protocol handler initialization failed
  </code></pre>
  
  <p>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 <code>server.xml</code> to find out that the value of port and redirectPort should not be same. </p>
  
  <pre><code>&lt;Server port="5005" shutdown="SHUTDOWN"&gt;
  &lt;Connector connectionTimeout="20000" port="5000" protocol="HTTP/1.1" redirectPort="8443"/&gt;
  &lt;Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/&gt;
  </code></pre>