You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Iglesias Teixeira <da...@gdtic.es> on 2007/09/07 11:30:47 UTC
"Connection closed by foreign host." Tomcat5 doesn't answer (Fedora
Core 5, yum install)
Hi all,
I've been trying to setup a FC5 box with tomcat5. I followed a couple of
tutorials around, and made it quite effortlessly with YUM in my test
environment.
When I tried to do the same in my production server, I can't seem to be
able to make tomcat "listen" in the 8080 port. When connecting from the
outside of the machine, I keep getting "Firefox no puede establecer una
conexión con el servidor en X.Y.Z.T:8080." (Something like: Firefox
couldn't stablish a connection with the server XYZT:8080). IE also
fails, so I'm afraid it's a server-side issue (that's why I'm posting here).
After a port-scan in both machines, I can see that "test" is listening
on port 8080, but "prod" is not, but I don't know if it's a matter of
firewalls (SELinux disabled) or misconfiguration on my tomcat5 install.
If I connect locally with telnet, have a look at what I get (the lines
with >> are the ones that I wrote, the rest is server output)
# telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
>> get /
<html><head><title>Apache Tomcat/5.5.15 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 501 - Method get is not defined in RFC 2068
and is not supported by the Servlet API </h1><HR size="1"
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
<u>Method get is not defined in RFC 2068 and is not supported by the
Servlet API </u></p><p><b>description</b> <u>The server does not support
the functionality needed to fulfill this request (Method get is not
defined in RFC 2068 and is not supported by the Servlet API
).</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/5.5.15</h3></body></html>Connection closed by foreign host.
And back to prompt. I googled a bit and noticed that "get" is not a cool
command, so I went for GET... And well, tomcat5 then doesn't give an
error, but closes connections inmediately :)
# telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
>> GET /
Connection closed by foreign host.
So, _apparently_ tomcat is listening and doing something, but it dies in
some ways I don't understand. Nothing is logged to "catalina.out", only
when it starts/stops so I don't even know where to start to troubleshoot
it :(
Any previous_experiences / suggestions / docs / helps ??
Thanks!!
Re: "Connection closed by foreign host." Tomcat5 doesn't answer (Fedora
Core 5, yum install)
Posted by David Iglesias Teixeira <da...@gdtic.es>.
Peter Crowther escribió:
>> From: David Iglesias Teixeira [mailto:david@gdtic.es]
>> After a port-scan in both machines, I can see that "test" is
>> listening on port 8080, but "prod" is not
>>
>
> On "prod":
>
> netstat -an | grep 8080
>
> Is port 8080 listed? My guess is "yes" based on you being able to
> telnet to it locally, in which case this is a firewall issue, not a
> Tomcat issue.
>
It is listed, so I'll have to check the hardware firewall that the
provider has set up.
Thanks for the über-fast response!
Re: "Connection closed by foreign host." Tomcat5 doesn't answer (Fedora
Core 5, yum install)
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Peter,
Peter Crowther wrote:
>> From: David Iglesias Teixeira [mailto:david@gdtic.es]
>> After a port-scan in both machines, I can see that "test" is
>> listening on port 8080, but "prod" is not
>
> Is port 8080 listed? My guess is "yes" based on you being able to
> telnet to it locally, in which case this is a firewall issue, not a
> Tomcat issue.
I'm not so sure. The telnet tests shown suggest that Tomcat will return
an error for an invalid request (method='get') but that a legit request
gets hung up on.
The firewall still might be an issue from another machine, but local
communication seems to work. GET / returns nothing? That's odd... not
even a 500 Server Error.
David, can you check your log files like catalina.out or others in the
'logs' directory? I wonder if whatever is supposed to be responding to
requests for "GET /" is bombing and that's why the connection is closing.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG4Xa89CaO5/Lv0PARArvYAKCvrlN1bkEkjulDHlRUPjSQ1lziqgCcDJ6i
UQB9lEW0aIB/ZiGsamVrgFQ=
=Necq
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: "Connection closed by foreign host." Tomcat5 doesn't answer (Fedora Core 5, yum install)
Posted by Peter Crowther <Pe...@melandra.com>.
> From: David Iglesias Teixeira [mailto:david@gdtic.es]
> After a port-scan in both machines, I can see that "test" is
> listening on port 8080, but "prod" is not
On "prod":
netstat -an | grep 8080
Is port 8080 listed? My guess is "yes" based on you being able to
telnet to it locally, in which case this is a firewall issue, not a
Tomcat issue.
- Peter
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org