Tomcat starts without errors but not listening on 8080

Viewed 23338

I am running tomcat 6 on Centos 6.4 and have started it sucessfully. There were no errors on start. catalina.log reads:

2012-08-11 14:23:42,941 | INFO  | main | o.a.c.http11.Http11NioProtocol | Starting Coyote HTTP/1.1 on http-xx.xx.xx.xx-8080
2012-08-11 14:23:42,960 | INFO  | main | o.a.catalina.startup.Catalina | Server startup in 121483 ms

And ps -x shows it as running.

Unfortunately it is not responding on port 8080 however and netstat -atnp | grep LISTEN does not list it.

Any ideas of what could cause this?

4 Answers

I thing following activity will also can be work.But yes, its only for Cent OS. Goto

vi  /etc/sysconfig/iptables

Just add following line and change your port as you want.

-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

save the file by pressing esc from keyboard and type :wq Then restart iptables:

service iptables restart

I thing it will be work.

Related