Tomcat startup failed: Address already in use: JVM_Bind

Tomcat failed to startup with the following error in %CATALINA_HOME%\logs\catalina.2007-01-11.log:
Jan 11, 2007 8:59:33 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:372)
at org.apache.catalina.startup.Catalina.await(Catalina.java:615)
at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
It appears the port number 8005, where tomcat is listening for SHUTDOWN signal, is already used by another process. It's a little bit odd, since I just started Windows and ran Tomcat as the first command.

I suspected it was some windows service program that automatically started when windows is started. It turned out to be some apple software is running on port 8005. After I removed that apple software, I was able to run Tomcat using the default port number 8005. This site lists port numbers used by some apple software.

Alternatively, I could just change Tomcat to use another port number by editing %CATALINA_HOME%\conf\server.xml:
<Server port="8006" shutdown="SHUTDOWN">

Followers

Pageviews Last 7 Days