java - Tomcat won't respond on port 8080 -


tomcat listening on port 8080, not respond correctly http requests. i'm running updated centos 6.2, , tomcat installed package tomcat6.

tomcat running , listening on port 8080.

# netstat -tlnp active internet connections (only servers) proto recv-q send-q local address               foreign address             state       pid/program name    tcp        0      0 0.0.0.0:8009                0.0.0.0:*                   listen      9214/java            tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   listen      9214/java            tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   listen      981/sshd             tcp        0      0 127.0.0.1:25                0.0.0.0:*                   listen      1057/master          tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   listen      9214/java  # ps aux | grep -i tomcat tomcat    9214  0.0 10.0 164556 51516 ?        sl   15:00   0:01 /usr/lib/jvm/jre/bin/java -djavax.sql.datasource.factory=org.apache.commons.dbcp.basicdatasourcefactory -classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -dcatalina.base=/usr/share/tomcat6 -dcatalina.home=/usr/share/tomcat6 -djava.endorsed.dirs= -djava.io.tmpdir=/var/cache/tomcat6/temp -djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -djava.util.logging.manager=org.apache.juli.classloaderlogmanager org.apache.catalina.startup.bootstrap start 

but when connect port 8080, "connection closed foreign host" message:

# telnet localhost 8080 trying ::1... telnet: connect address ::1: connection refused trying 127.0.0.1... connected localhost. escape character '^]'. / connection closed foreign host.            

it's important note connect port 8080, connection closed when sent on connection stream:

# netstat -tnp active internet connections (w/o servers) proto recv-q send-q local address               foreign address             state       pid/program name             tcp        0      0 127.0.0.1:8080              127.0.0.1:54553             time_wait   -   

the logs show no error messages:

# tail /var/log/tomcat6/catalina.out  aug 26, 2013 3:00:36 p.m. org.apache.catalina.core.standardengine start info: starting servlet engine: apache tomcat/6.0.24 aug 26, 2013 3:00:36 p.m. org.apache.coyote.http11.http11protocol start info: starting coyote http/1.1 on http-8080 aug 26, 2013 3:00:36 p.m. org.apache.jk.common.channelsocket init info: jk: ajp13 listening on /0.0.0.0:8009 aug 26, 2013 3:00:36 p.m. org.apache.jk.server.jkmain start info: jk running id=0 time=0/19  config=null aug 26, 2013 3:00:36 p.m. org.apache.catalina.startup.catalina start info: server startup in 144 ms  # tail /var/log/messages  aug 26 13:17:45 sugar yum[1120]: installed: regexp-1.5-4.4.el6.i686 aug 26 13:17:46 sugar yum[1120]: installed: bcel-5.2-7.2.el6.i686 aug 26 13:17:46 sugar yum[1120]: installed: 1:mx4j-3.0.1-9.13.el6.noarch aug 26 13:17:46 sugar yum[1120]: installed: tomcat6-lib-6.0.24-57.el6_4.noarch aug 26 13:17:46 sugar yum[1120]: installed: tomcat6-6.0.24-57.el6_4.noarch aug 26 14:42:06 sugar kernel: ip_tables: (c) 2000-2006 netfilter core team aug 26 14:44:07 sugar yum[8994]: installed: gpm-libs-1.20.6-12.el6.i686 aug 26 14:44:07 sugar yum[8994]: installed: gc-7.1-10.el6.i686 aug 26 14:44:08 sugar yum[8994]: installed: w3m-0.5.2-16.el6.i686 aug 26 14:54:07 sugar yum[9068]: installed: 1:telnet-0.17-47.el6_3.1.i686  # pwd /var/log/tomcat6  # ll total 24 -rw-r--r-- 1 tomcat tomcat  8277 aug 26 15:00 catalina.2013-08-26.log -rw-r--r-- 1 tomcat tomcat 12112 aug 26 15:31 catalina.out -rw-r--r-- 1 tomcat tomcat     0 aug 26 13:23 host-manager.2013-08-26.log -rw-r--r-- 1 tomcat tomcat     0 aug 26 13:23 localhost.2013-08-26.log -rw-r--r-- 1 tomcat tomcat     0 aug 26 13:23 manager.2013-08-26.log 

for peace of mind, checked firewall:

# iptables -l -vn chain input (policy accept 6042 packets, 1563k bytes)  pkts bytes target     prot opt in     out     source               destination           chain forward (policy accept 0 packets, 0 bytes)  pkts bytes target     prot opt in     out     source               destination           chain output (policy accept 4122 packets, 587k bytes)  pkts bytes target     prot opt in     out     source               destination    

how can further troubleshooting!? thanks!

it don't have application deployed on root?

can post content of /tomcat/webapps/* ?

say have application.war deployed you'd rather do

get /application/something 

i tested on working tomcat , when calling get / returns nothing because there no application deployed on there (default root in tomcat /tomcat/webapps/root)

hope help.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -