You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Geoff Ballinger <ge...@digitalbridges.com> on 2001/10/16 13:06:09 UTC

Re: tomcat-user Digest 27 Sep 2001 12:35:31 -0000 Issue 1558

	For everybody's info we finally tracked this down to some bug in the 
AJP13 pathway - either in mod_jk or possibly in Tomcat itself. AT some 
point on the way up the textual version of the HTTP status is getting 
lost. Our workaround is to use AJP12 instead,

							G.

 > Date: Thu, 27 Sep 2001 09:07:47 +0100
 > To: tomcat-user@jakarta.apache.org
 > From: Geoff Ballinger <ge...@digitalbridges.com>
 > Subject: Incomplete HTTP status from tomcat
 > Message-ID: <3B...@digitalbridges.com>
 >
 > Dear all,
 >
 > 	Here at DB we are using Tomcat 3.2.3 combined with apache 1.3.20 and
 > mod_jk running under redhat 7.1 (+ kernel 2.4.9) to host our mobile
 > games platform - Unity. I have come across a slightly odd feature of
 > Tomcat's HTTP response which seems to confuse a couple of the WML
 > microbrowsers we need to support.
 >
 > 	The basic problem is that the HTTP status line doesn't seem to include
 > the textual version of the response i.e. you get back "HTTP/1.1 200"
 > instead of "HTTP/1.1 200 OK" etc. I am comparing our current tomcat
 > build with our previous build which was hosted using JServ. The only
 > difference between the two responses are the change in the status line
 > as described plus the addition of a charset clause in the Content-Type
 >
 > 	My first question is which of the three layers of software is generating
 > the header when used in this combination - Apache proper, mod_jk, or
 > Tomcat itself?
 >
 > 	Is this form of header normal for a hit to a servlet in this setup. What
 > do other people see? Do the newer tomcat versions also exhibit this
 > behaviour?
 >
 > 	Thanks,
 >
 > 		Geoff.





RE: How to set Tomcat 4 access log pattern

Posted by Tal Dayan <ta...@zapta.com>.
Wow! I could not hope for more ;-)

Thanks,

Tal

> -----Original Message-----
> From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
> R. McClanahan
> Sent: Wednesday, October 17, 2001 9:17 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: How to set Tomcat 4 access log pattern
>
>
> See the "Server Configuration Reference" in the Tomcat Documentation that
> is included with Tomcat.  The online copy of what you're asking for is at:
>
>   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html
>
> under the "Access Log Valve" heading.
>
> Craig (sniff sniff, I bloodied my fingers typing all those docs in and
> nobody even *looks* at them :-) :-)
>
>
>
> On Wed, 17 Oct 2001, Tal Dayan wrote:
>
> > Date: Wed, 17 Oct 2001 08:04:05 -0700
> > From: Tal Dayan <ta...@zapta.com>
> > Reply-To: tomcat-user@jakarta.apache.org
> > To: tomcat-user@jakarta.apache.org
> > Subject: How to set Tomcat 4 access log pattern
> >
> >
> > The default access log pattern of Tomcat 4.01 is 'COMMON' (see
> > org.apache.catalina.valves.AccessLogValve.java and Constants.java).
> >
> > Is there a way to configure Tomcat to use the COMBINED pattern or a user
> > specified pattern ?
> >
> > It seems that Tomcat has all the capability internally
> > but I could not figure out how to set it our without recompiling
> > AccessLogValve.java.
> >
> > We need to have the host name in the log because our server runs many
> > virtual hosts.
> >
> > Thanks,
> >
> > Tal
> >
> >
>


Re: How to set Tomcat 4 access log pattern

Posted by "Craig R. McClanahan" <cr...@apache.org>.
See the "Server Configuration Reference" in the Tomcat Documentation that
is included with Tomcat.  The online copy of what you're asking for is at:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html

under the "Access Log Valve" heading.

Craig (sniff sniff, I bloodied my fingers typing all those docs in and
nobody even *looks* at them :-) :-)



On Wed, 17 Oct 2001, Tal Dayan wrote:

> Date: Wed, 17 Oct 2001 08:04:05 -0700
> From: Tal Dayan <ta...@zapta.com>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: How to set Tomcat 4 access log pattern
>
>
> The default access log pattern of Tomcat 4.01 is 'COMMON' (see
> org.apache.catalina.valves.AccessLogValve.java and Constants.java).
>
> Is there a way to configure Tomcat to use the COMBINED pattern or a user
> specified pattern ?
>
> It seems that Tomcat has all the capability internally
> but I could not figure out how to set it our without recompiling
> AccessLogValve.java.
>
> We need to have the host name in the log because our server runs many
> virtual hosts.
>
> Thanks,
>
> Tal
>
>


How to set Tomcat 4 access log pattern

Posted by Tal Dayan <ta...@zapta.com>.
The default access log pattern of Tomcat 4.01 is 'COMMON' (see
org.apache.catalina.valves.AccessLogValve.java and Constants.java).

Is there a way to configure Tomcat to use the COMBINED pattern or a user
specified pattern ?

It seems that Tomcat has all the capability internally
but I could not figure out how to set it our without recompiling
AccessLogValve.java.

We need to have the host name in the log because our server runs many
virtual hosts.

Thanks,

Tal