tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Einfeldt" <ralph.einfe...@uptime-isc.de>
Subject AW: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode
Date Wed, 16 Jan 2002 14:54:40 GMT
So tomcat is not only listening but also serving locally.

The 'Moved Temporarily' is just a redirect from / to /index.html

If there is a page index.html in your webapp, you should be able 
to visit the site from a browser locally.

Verify that your browser is not using a proxy, as the
proxy might be an additional source for an error.

> -----Ursprüngliche Nachricht-----
> Von: Steve [mailto:stevesusenet@yahoo.com]
> Gesendet: Mittwoch, 16. Januar 2002 03:20
> An: Tomcat Users List
> Betreff: Re: AW: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To 
> Work In Stand
> Alone Mode
> 
> 
> Sharp thinking Ralph.
> 
> I finally got an error message when telneting to localhost 
> 8080. I ran 
> GET / HTTP 1.0 and Tomcat generated an error page in html.  
> This was the 
>   message:
> 
> =========================================
> Apache Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily
> type Status report
> message Moved Temporarily
> 
> description The requested resource (Moved Temporarily) has moved 
> temporarily to a new location.
> =========================================
> 
> The Tomcat logs once again showed everything to be fine.
> 
> My knowledge of HTTP protocols is very limited so I have no idea what 
> Tomcat means by "Moved temporarily" or what to do about it :).
> 
> The output from the telnet session mentioned that an initial 
> address was 
> refused.  Maybe that has something to do with it?
> 
> 
> In case you have any ideas he is the shell output of the 
> telnet I ran on 
> localhost:
> 
> ==============================================================
> ==============
> steve@linux:/usr/local/Tomcat/bin > telnet localhost 8080
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> GET / HTTP 1.0
> 
> HTTP/1.1 302 Moved Temporarily
> Content-Type: text/html
> Date: Wed, 16 Jan 2002 02:05:55 GMT
> Location: http://localhost:8080/index.html
> Server: Apache Tomcat/4.0.1 (HTTP/1.1 Connector)
> Connection: close
> 
> <html><head><title>Apache Tomcat/4.0.1 - Error 
> report</title><STYLE><!--H1{font-family : 
> sans-serif,Arial,Tahoma;color 
> : white;background-color : #0086b2;} BODY{font-family : 
> sans-serif,Arial,Tahoma;color : black;background-color : 
> white;} B{color 
> : white;background-color : #0086b2;} HR{color : #0086b2;} --></STYLE> 
> </head><body><h1>Apache
> Tomcat/4.0.1 - HTTP Status 302 - Moved Temporarily</h1><HR size="1" 
> noshade><p><b>type</b> Status report</p><p><b>message</b>
<u>Moved 
> Temporarily</u></p><p><b>description</b> <u>The requested
resource 
> (Moved Temporarily) has moved temporarily to a new 
> location.</u></p><HR 
> size="1" noshade></body></html>Connection closed by foreign host.
> steve@linux:/usr/local/Tomcat/bin >
> ==============================================================
> =============
> 
> 
> 
> 
> 
> Ralph Einfeldt wrote:
> 
> > Okay, now we know that your tomcat is up and listening on port 8080.
> > 
> > try the telnet sequence with localhost as hostname.
> > 
> > 
> >>-----Ursprüngliche Nachricht-----
> >>Von: Steve [mailto:stevesusenet@yahoo.com]
> >>Gesendet: Dienstag, 15. Januar 2002 08:31
> >>An: Tomcat Users List
> >>Betreff: Re: AW: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand
> >>Alone Mode
> >>
> >>
> >>Okay.  I executed some of these commands.  I didn't try the 
> last part 
> >>about telneting because I couldn't find a hostname.
> >>
> >>Any clues you can get from this will be appreciated.
> >>
> >>BTW the permissions of my Tomcat directory are as follows:
> >>User: steve
> >>Group: users
> >>
> >>rwx rwx rwx
> >>
> >>Maybe this has something to do with it.
> >>
> >>
> >>
> >>Here is my output:
> >>
> >>steve@linux:/usr/local/Tomcat/bin > startup.sh
> >>Using CLASSPATH: 
> >>/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools.jar
> >>Using CATALINA_BASE: /usr/local/Tomcat
> >>Using CATALINA_HOME: /usr/local/Tomcat
> >>Using JAVA_HOME:     /usr/local/JDK
> >>steve@linux:/usr/local/Tomcat/bin >
> >>
> >>steve@linux:/usr/local/Tomcat/bin > su root
> >>Password:
> >>root@linux:/usr/local/Tomcat/bin > lsof -i :8080
> >>COMMAND  PID  USER   FD   TYPE DEVICE SIZE NODE NAME
> >>java    1185 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1212 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1213 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1214 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1215 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1216 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1217 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1218 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1219 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1220 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1221 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1222 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1223 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1224 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1225 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1226 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1227 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1228 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1229 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1230 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1231 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>java    1232 steve    6u  IPv4   6403       TCP *:http-alt (LISTEN)
> >>root@linux:/usr/local/Tomcat/bin >
> >>
> >>
> >>
> >>
> >>
> >>root@linux:/usr/local/Tomcat/bin > ps p 1232
> >>   PID TTY      STAT   TIME COMMAND
> >>  1232 pts/1    S      0:00 
> >>/usr/local/JDK/bin/i386/native_threads/java 
> >>-classpath /usr/local/Tomcat/bin/bootstrap.
> >>root@linux:/usr/local/Tomcat/bin > ps p 1220
> >>   PID TTY      STAT   TIME COMMAND
> >>  1220 pts/1    S      0:00 
> >>/usr/local/JDK/bin/i386/native_threads/java 
> >>-classpath 
> >>/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools.r
> >>oot@linux:/usr/local/Tomcat/bin 
> >> > ps p 1185
> >>   PID TTY      STAT   TIME COMMAND
> >>  1185 pts/1    S      0:10 
> >>/usr/local/JDK/bin/i386/native_threads/java 
> >>-classpath 
> >>/usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools.r
> >>oot@linux:/usr/local/Tomcat/bin 
> >> >
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>Ralph Einfeldt wrote:
> >>
> >>
> >>>The following line from your mail indicates that tomcat is 
> >>>
> >>listening:
> >>
> >>>tcp        0      0 0.0.0.0:8080            0.0.0.0:* LISTEN
> >>>
> >>>To be really shure that this is tomcat do the following.
> >>>(As root)
> >>>lsof -i :8080
> >>>
> >>>Witch that you get the pid of the program that listens on 
> port 8080.
> >>>To find out more about that process: (Make the window big 
> enough to 
> >>>see something from the command line)
> >>>ps p <pid>
> >>>
> >>>Try with the hostname that is listed in the output of lsof the
> >>>following:
> >>>
> >>>telnet <hostname> 80
> >>>GET / HTTP 1.0
> >>><Return>
> >>><Return>
> >>>
> >>>This should hit tomcat and produce at least some log messages.
> >>>
> >>>
> >>>
> >>>>-----Ursprüngliche Nachricht-----
> >>>>Von: Steve [mailto:stevesusenet@yahoo.com]
> >>>>Gesendet: Dienstag, 15. Januar 2002 04:49
> >>>>An: Tomcat Users List
> >>>>Betreff: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In 
> >>>>
> >>Stand Alone
> >>
> >>>>Mode
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>--
> >>>To unsubscribe:   
> >>>
> >><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >>
> >>>For additional commands: 
> >>>
> >><mailto:tomcat-user-help@jakarta.apache.org>
> >>
> >>>Troubles with the list: 
> >>>
> >><mailto:tomcat-user-owner@jakarta.apache.org>
> >>
> >>
> >>-- 
> >>Steve
> >>
> >>The Java Resource Dump
> >>http://www.geocities.com/beforewisdom/Java/index.html
> >>
> >>-------------------------------------------------------
> >>"Rancor is an outpouring of a feeling of inferiority"
> >>- Jose' Ortega y Gasset
> >>--------------------------------------------------------
> >>
> >>
> >>--
> >>To unsubscribe:   
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>>
>>
>>
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 


-- 
Steve

The Java Resource Dump
http://www.geocities.com/beforewisdom/Java/index.html

-------------------------------------------------------
"Rancor is an outpouring of a feeling of inferiority"
- Jose' Ortega y Gasset
--------------------------------------------------------


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message