Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have done a fresh install of Tomcat 7 on CentOS 6.2 system. Tomcat starts successfully without any errors in logs, but I am not able to access it on mydomain.com:8080. I get "cannot connect" message. The port is definitely not blocked (I have not yet setup any firewall) and the server is running.

Any suggestions what might be causing the problem?

share|improve this question
    
Hmm, so many things can be wrong. netstat -an |grep 8080 to start, to see if the tomcat process is actually listening on port 8080 on an available interface. Also, host mydomain.com to make sure you're hitting the IP you expect to hit for the server. –  cjc Apr 24 '12 at 19:22
1  
When I issue netstat -an |grep 8080 this is when tomcat is stopped: tcp 0 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:34483 TIME_WAIT and this is when tomcat is running: tcp 0 0 :::8080 :::* LISTEN. The IP address is correct. –  Eleeist Apr 24 '12 at 19:27
1  
Are you sure there isn't an external firewall? Port 8080 is atypical for hosting services to open up, if they're restricting themselves to 22, 80 and 443. Also, if this is an EC2 instance, you would probably need to add that port into the Security Group that applies. Also, from where are you testing? From the box itself, some other machine on the network, through the Internet? Please update your Question with that info. –  cjc Apr 24 '12 at 19:30
    
What's listening on 8080 while Tomcat is stopped? Check lsof -i. –  Shane Madden Apr 24 '12 at 19:42
    
can you provide your server.xml? You have to configure tomcate to listen on mydomain.com:8080 in the server.xml. DOes it work when you try localhost? –  Jason Huntley Apr 24 '12 at 20:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.