Monday, January 28, 2013

Failed to bind - Apache Tomcat startup error

By default tomcat runs on port 8080. But if any other application is using this port, tomcat wont start properly unless we change the binding port.

To change the port do the following

Goto Tomcat installation/unzipped folder



Goto the conf folder and open the server.xml file


Change the default port to the available port


Save the file

Goto the bin folder and make a copy of startup.bat as startup-always.bat



Edit the startup-always bat file

Instead of call

"%EXECUTABLE%" start %CMD_LINE_ARGS%

change to in the startup-always.bat

call "%EXECUTABLE%" run %CMD_LINE_ARGS%



Now run the new batch file startup-always.bat

It will start Tomcat and now the welcome page will appear as



No comments:

Post a Comment