LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tomcat installation (https://www.linuxquestions.org/questions/linux-newbie-8/tomcat-installation-342024/)

zakidad 07-10-2005 10:52 PM

Tomcat installation
 
Hi. Currently I have install jakarta tomcat version 5.0.8 on my fedora 3 with apache version 2.0. When I attemp to get the tomcat test page to dispplay, it seems that the browser searching continuously without an end when I typed
http://localhost:8080/
What would usualy caused the problem? The tomcat test page had once appeared without any changes given to the apache config file.
Is it the tomcat config file (server.xml) that need to be checked or there are some other simple thing that I forgot to check (comman error/mistake/carelessness) before starting to get the tomcat test page? Is mysql have anything to do with it?
Thanks for any idea and help.
Bye.

bathory 07-11-2005 02:22 AM

Are you sure tomcat is running? Run:
Code:

netstat -tpan|grep 8080
to see if port 8080 is listening.
If not, run
Code:

./startup.sh
from the /bin subdir of your tomcat installation dir.
If it's running check the logs under the /logs subdir to see what's wrong.

zakidad 07-11-2005 08:12 PM

The output is like this

[root@zaki log]# netstat -tpan|grep 8080
tcp 0 0 :::8080 :::* LISTEN 2993/java
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:36126 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:36124 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:34139 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:34138 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:36058 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33047 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33869 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33868 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33866 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:36168 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33927 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33926 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33861 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33860 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33859 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33858 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33921 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:34617 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:34616 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:34168 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:34167 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:33071 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:36143 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:34603 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:32810 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:32809 CLOSE_WAIT -
tcp 320 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:36070 CLOSE_WAIT -
tcp 389 0 ::ffff:127.0.0.1:8080 ::ffff:127.0.0.1:36133 CLOSE_WAIT -

and for the log files the content is

2005-07-11 12:24:00 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2005-07-11 12:24:09 StandardContext[/servlets-examples]ContextListener: contextInitialized()
2005-07-11 12:24:09 StandardContext[/servlets-examples]SessionListener: contextInitialized()
2005-07-11 12:24:10 StandardContext[/jsp-examples]ContextListener: contextInitialized()
2005-07-11 12:24:10 StandardContext[/jsp-examples]SessionListener: contextInitialized()
2005-07-11 12:24:11 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@221e9e')
2005-07-11 12:24:11 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@83e1e')
2005-07-11 12:24:11 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1264eab')
2005-07-11 12:24:11 StandardContext[/servlets-examples]SessionListener: contextDestroyed()
2005-07-11 12:24:11 StandardContext[/servlets-examples]ContextListener: contextDestroyed()
2005-07-11 12:24:11 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@11a01dd')
2005-07-11 12:24:11 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@70610a')
2005-07-11 12:24:11 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1f31652')
2005-07-11 12:24:11 StandardContext[/jsp-examples]SessionListener: contextDestroyed()
2005-07-11 12:24:11 StandardContext[/jsp-examples]ContextListener: contextDestroyed()
2005-07-11 16:16:15 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2005-07-11 16:16:22 StandardContext[/servlets-examples]ContextListener: contextInitialized()
2005-07-11 16:16:22 StandardContext[/servlets-examples]SessionListener: contextInitialized()
2005-07-11 16:16:22 StandardContext[/jsp-examples]ContextListener: contextInitialized()
2005-07-11 16:16:22 StandardContext[/jsp-examples]SessionListener: contextInitialized()
2005-07-11 16:16:24 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@3a1834')
2005-07-11 16:16:24 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@b1cd0')

2005-07-11 16:16:24 StandardContext[/servlets-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@190a0d6')
2005-07-11 16:16:24 StandardContext[/servlets-examples]SessionListener: contextDestroyed()
2005-07-11 16:16:24 StandardContext[/servlets-examples]ContextListener: contextDestroyed()
2005-07-11 16:16:24 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@4a9a7d')
2005-07-11 16:16:24 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1e4a47e')
2005-07-11 16:16:24 StandardContext[/jsp-examples]ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1eb5666')
2005-07-11 16:16:24 StandardContext[/jsp-examples]SessionListener: contextDestroyed()
2005-07-11 16:16:24 StandardContext[/jsp-examples]ContextListener: contextDestroyed()
..
What hapen actualy?

bathory 07-12-2005 02:15 AM

PHP Code:

tcp 0 0 :::8080 :::* LISTEN 2993/java 

Are you sure your localhost is setup correctly? I guess you're on an IPv6 network! If that's correct check your /etc/hosts file for the localhost entry.


All times are GMT -5. The time now is 12:57 AM.