In my Apache Tomcat installation, my server.xml file in my conf directory indicates that my port is 8005. When I enter http://localhost:8005/ I get a "could not connect to localhost:8005" error. This is just driving me crazy. What am I doing wrong?

link|improve this question
1  
Too general question, specify Tomcat version, operating system, the way you installed it, if other ports work etc. – dark_charlie Jul 28 '10 at 0:48
3  
Voting to move to Super User - Server Fault isn't too keen on supporting developers in their personal development environments and suggested Super User to me when dealing with server configuration. – Thomas Owens Jul 28 '10 at 0:48
@Jerry this is a duplicate of your earlier question stackoverflow.com/questions/3337828/…. Can you check the catalina.log file for confirming the port Tomcat started on. – JoseK Jul 28 '10 at 5:15
feedback

migrated from stackoverflow.com Jul 28 '10 at 19:45

This question came from our site for professional and enthusiast programmers.

2 Answers

8005 is not http port for tomcat, default http port is 8080. you should be able to find it in server.xml

link|improve this answer
Although his server.xml states that his port is 8005 it's 8080? – Thiago M. Jul 1 '11 at 14:36
feedback

In server.xml you see the following:

<Server port="8005" shutdown="SHUTDOWN">

This port is not the port you use when opening your tomcat project in your browser. It's (probably) the internal port tomcat uses to shutdown.

The connector specifies the port which is used to connect to the outside world. You can change this port to 80 if you don't use another webserver (like apache or nginx) and don't want to use :8080 in your web address (like http://yourdomain.test:8080)

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

Edit: hmm, I now see this is an old question, so probably my answer is obsolete, but anyway - maybe it helps someone!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown