System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Tomcat Server Up and Running : But cannot browse through IE/Firefox

Sutapa Dey
Frequent Advisor

Tomcat Server Up and Running : But cannot browse through IE/Firefox

Hi All,

I have started both apache server and tomcat server on HP-UX box.
Apache running on port 80 and Tomcat supposedly on port 8080.
When I do a
# ps -aex | grep httpd
11053 ? 0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
11054 ? 0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
11051 ? 0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start
11052 ? 0:00 /opt/hpws/apache/bin/httpd -d /opt/hpws/apache -k start

# ps -aex | grep catalina
5811 ? 0:13 /opt/java1.5/bin/IA64N/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XdoCloseWithReadPending -Djava.endorsed.dirs=/opt/hpws/tomcat/common/endorsed -classpath :/opt/hpws/tomcat/bin/bootstrap.jar:/opt/hpws/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/hpws/tomcat -Dcatalina.home=/opt/hpws/tomcat -Djava.io.tmpdir=/opt/hpws/tomcat/temp org.apache.catalina.startup.Bootstrap start
[rx26-154]/opt/hpws/apache/bin

Which shows both the servers are running.
But I can access the homepage of the Apache server by:
http:///
But I cannot access the homepage of the Tomcat server by:
http://:8080/

Please help.
2 REPLIES
Simon Hargrave
Honored Contributor

Re: Tomcat Server Up and Running : But cannot browse through IE/Firefox

You can easily check whether the server is listening on port 8080 with netstat: -

netstat -an | grep LISTEN

Also, if you have lsof installed (a very usefuly tool to install if you don't have it), then you can see what port a particular process is listening to: -

lsof -p 5811

You will see a TCP line for any open listening ports.

Of course you can also double-check in your Tomcat config files, and even "telnet localhost 8080" to see if you get a response.
Steven E. Protter
Exalted Contributor

Re: Tomcat Server Up and Running : But cannot browse through IE/Firefox

Shalom,

netstat -an | grep 8080

If you are running oracle on the same server there may be a port conflict with the oracle web based OEM product.

Other conflict is possible.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com