Tomcat 6.0 java.net.BindException: Address already in use: JVM_Bind

Tomcat 6.0 was not starting correctly on default port. Tried changing the connector port to 8181 in the server.xml as follows:

Connector port="8181" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

Still was receiving the following exception on startup:
Mar 18, 2011 2:58:05 PM 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(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Identified that the port 8005 was being used by some other process using the following command:
C:\>netstat -nao | findstr "8005"
TCP 127.0.0.1:8005 0.0.0.0:0 LISTENING 1576

Changed the following configuration in Tomcat's server.xml:

And it worked like a charm.


Comments

Popular posts from this blog

Load data from CSV into HIVE table using HUE browser

Gitlab change project visibility from private to internal

Setting property 'keystoreFile' did not find a matching property. No Certificate file specified or invalid file format