Link to home
Start Free TrialLog in
Avatar of twolines
twolinesFlag for United States of America

asked on

Tomcat cannot connect to localhost

During the service restart I get the following error:

org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection timed out

Seems that Tomcat cannot connect to localhost.

Indeed, when I execute

# telnet localhost
Trying xx.xx.xx.xx...
telnet: connect to address xx.xx.xx.xx: Connection timed out
telnet: Unable to connect to remote host: Connection timed out
 
xx.xx.xx.xx - some IP I use on the server, not the main one - and not 127.0.0.1(!)

in /etc/hosts
127.0.0.1       localhost.localdomain  localhost

Any ideas will be appreciated.
Avatar of for_yan
for_yan
Flag of United States of America image

Try if you can ping the host by that IP which you use
Avatar of twolines

ASKER

ping localhost gives this IP address, xx.xx.xx.xx, but not 127.0.0.1
Try to ping on that ip rather than by local host - the sa$me way tomcat wants to reach it
this IP is also pingable
Do you think telnet to localhost worked before when tomcat was also operating?
no idea, for being honest..
Is this a big server? Perhaps youi can try to reboot the system. This is probably somenetwork issue
ASKER CERTIFIED SOLUTION
Avatar of n_sachin1
n_sachin1
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial