Failed to start Tomcat service

Error in AE-tomcat logs: java.net.BindException: Address already in use: JVM_Bind

Solution:

It seems the port which you have configured to run tomcat service(default 8080) is already used by some other application.
To run the tomcat service on other ports, please follow the below step:

  • Edit the server.xml file from apache-tomcat/conf directory

  • Search for the below connector in server.xml file:

     <Connector port="8080" protocol="HTTP/1.1"
             connectionTimeout="20000"
             redirectPort="8443" /> 
    
  • You can change the port 8080 to 8081 or any other port(whichever is free)

      <Connector port="8081" protocol="HTTP/1.1"
             connectionTimeout="20000"
             redirectPort="8443" />	   
    
  • Save the file and start the tomcat service.