How to change Tomcat default port from 8080?

By default, Tomcat will be configured to listen the port number 8080 for all the HTTP request, but there are many situations where other Java applications also uses the same 8080 port number which will result in Java Bind Exception.

java.net.BindException: Address already in use: JVM_Bind: 8080

In order to prevent those exceptions we need to change tomcat default port from 8080 to something else like 9090 (or) 9091. In this article lets see how we can change the tomcat default port.
[Read more…]