Thursday, August 30, 2012

Tomcat : Failed to start connector [Connector[HTTP/1.1-0]]

Most of the times when starting a tomcat server, we face many problems. Most of the times, the problems are because of some settings which are done to some of the files and it stops working.

The best way to solve this problem is to either trouble shoot for the problem or replace the tomcat with a new one and then re-deploy the application.

In case of troubleshooting, if you are getting some error like this :-
"Failed to start connector [Connector[HTTP/1.1-0]]"

then, it may be because of some port clash or the tomcat is already running by some other user or the tomcat was not stopped properly or some changes which are done in the deployment/web.xml file or some changes in the bin/statup or bin/catalina

For troubleshooting these fields check for the following things :-

1. Change the port no. from the conf/server.xml and then again launch the tomcat

2.  To check if tomcat is already running, then go to task manager in windows and search for the Java.exe files, if any process with java.exe is running by some other user, then kill that process and then again check

3. Check for the new settings which are done in "deployment/web.xml". Remove those and then check again

4. For the changes in "startup" or "Catalina" file, check if you have defined the "CATALINA_OPTS" or "JAVA_OPTS" incorrectly in any of the line. Or remove the "CATALINA_OPTS / JAVA_OPTS" settings done by you and then check if tomcat is starting or not.

I think any of these would help you solve the problem of starting the tomcat.

Happy Testing and Keep Sharing :-)

No comments:

Post a Comment