2 Minutes To Code (β Version)

Apache Tomcat - 2 minute tutorial

Port already bound : How to troubleshoot 'port already in use' issue

If you see the error java.net.BindException: Address Already In use: JVM_Bind, then either the http listening port or shutdown port configured in $TOMCAT_HOME/conf/server.xml is already used by some other network service.

Just change these ports and your tomcat will run smoothly.

To confirm whether another service is already using that port, you can use the unix command netstat on a linux box. This netstat command :

netstat -nl

will display all ports your system is currently listening on :