Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie trying to set up Tomcat



On 29/02/04 6:06, "Wade Peeler" <email@hidden> wrote:

> Okay, this e-mail is really long, because I've pasted the output from
> catalina.out. I've got Tomcat working on port 80 for now...
>
> Now I stopped Tomcat, and catalina.out said this:
>
> Feb 28, 2004 10:54:17 PM org.apache.coyote.http11.Http11Protocol pause
> INFO: http11protocol.pause
> Feb 28, 2004 10:54:17 PM org.apache.jk.common.ChannelSocket
> acceptConnections
> WARNING: Exception executing accept
> java.net.SocketException: Connection reset by peer

<snip/>

Welcome to the wonderful world of HTTP inner secrets. What you are seeing
is realtime interaction between Catalina and a HTTP client (undoubtedly
you).

Port 8080
The error message <Connection reset by peer> is something you will see a lot
of if your clients are connecting with MSIE 5.5 and above. For some reason
the HTTP1.1 protocol stack used by IE causes this error. It is NON FATAL
and as it says a WARNING. If you google <java.net.SocketException:
Connection reset by peer> you will find copious references to this error.
Because it is purely informational and just junks Catalina.out making real
error messages more difficult to see, most people turn down the debug level
in server.xml. I think it became such a complaint that the TC developers
enabled a filter in TC 5.x.x that can be configured to stop annoying
messages like this from polluting the logs. I don't run TC 5.x.x [yet] but
if you read the docs and/or search the TC lists you will find how others
have solved the problem.

But it is purely informational and nothing to worry about. The rest of the
output looks normal.

Port 80 - unprivileged
The <Permission Denied> is due to the fact that you are trying to open a
socket on port 80 as an unprivileged user. You need to be root to open on
port 80. So as you can see the server doesn't start and when you
./shutdown.sh it throws another error because it can't find a running
instance of TC.

Port 80 - root
Things start up normally and you can connect.


One thing you can do if you are running TC as <standalone> (i.e. w/o Apache)
is to comment out all of the Apache connector references from server.xml.
I believe in TC 5 (as in 4.x.x) that these lines are towards the bottom of
the server.xml.


Steven
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.