You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Robert Leftwich <ro...@leftwich.info> on 2003/11/04 23:27:15 UTC

Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000

I am attempting to get this combination to work correctly using an in 
process Tomcat *without* using AJP, as the 8k hard limit on total request 
size imposed by AJP is not viable in my situation. Now, I can get the setup 
to work using AJP, based on the many how-to's contributed by various people 
(btw thanks for taking the time to make these available) but I cannot find 
a way to disable AJP and have it work.

Is what I am trying to do even possible or does the in-process setup still 
require AJP? If it is possible, I would love to hear from someone that has 
made it work. If not, is there an alternative way to hook the 2 together 
(other than mod_proxy/mod_rewrite as those solutions won't work with the 
servlets I want to incorporate)?

Robert

Re: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000

Posted by Robert Leftwich <ro...@leftwich.info>.
At 10:57 AM 5/11/2003, I wrote:

>Some sort of bug in mod_jk? (although it happens using both mod_jk and 
>mod_jk2).

Hmm, it looks that way....
On further investigation the actual problem appears to be with the response 
size not the request size. The scenario is that after a successful POST a 
jsp formats a debug dump of the result and returns it to the client. In 
this case the data returned is *not* transfer encoded (i.e. chunked) and 
this causes mod_jk to choke on the >8k of data whereas the html 
representation of the form(s) are sent to the client chunked and do not 
cause the problem. I've also confirmed that the same problem exists in both 
the current jk and jk2 releases.

Robert



Re: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000

Posted by Robert Leftwich <ro...@leftwich.info>.
At 10:01 AM 5/11/2003, Christopher Schultz wrote:

>HTTP POST information doesn't go in the headers, so you should still be 
>okay. As long as you aren't senting huge amounts of information via a GET 
>request, or you are sending like a million cookies or something.

True - it is definitely using POST...


>What is so big that's in your headers? I would think that 8k would be 
>sufficient for headers...
>
>What is it that XForms does that generates so much header information?

Hmm - it doesn't appear that there is anything that big in my headers (the 
form itself contains a lot of information in a grid/table). Using 
LiveHttpHeaders doesn't highlight any issues (although it won't display the 
failed POST), but as soon as I add 1 byte to the form to push it over the 
8k limit (Apache's access log reports POST 
/chiba-0.9.2/jsp/debug-instance.jsp HTTP/1.1" 200 8193) then I get an error 
from mod_jk "[error] Error ajp_process_callback - write failed"

Some sort of bug in mod_jk? (although it happens using both mod_jk and 
mod_jk2).


Robert 

Re: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000

Posted by Christopher Schultz <ch...@comcast.net>.
Robert,
> From 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/common/AJPv13.html#Questions%20I%20Have 
> 
> "What happens if the request headers > max packet size? There is no 
> provision to send a second packet of request headers in case there are 
> more than 8K "
> 
> So more correctly if the http request has more than 8k in the headers it 
> will fail (e.g. posting a lot of form information) and one of the 
> servlets I'm trying to hook into Apache is the Chiba XForms 
> implementation which can (relatively) easily exceed this limit.

HTTP POST information doesn't go in the headers, so you should still be 
okay. As long as you aren't senting huge amounts of information via a 
GET request, or you are sending like a million cookies or something.

What is so big that's in your headers? I would think that 8k would be 
sufficient for headers...

What is it that XForms does that generates so much header information?

-chris


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000

Posted by Robert Leftwich <ro...@leftwich.info>.
At 09:37 AM 5/11/2003, Christopher Schultz wrote:

>Robert,
>>I am attempting to get this combination to work correctly using an in 
>>process Tomcat *without* using AJP, as the 8k hard limit on total request 
>>size imposed by AJP is not viable in my situation.
>
>There's an 8k maximum request size with the AJP protocol? Really? I've 
>been uploading files of several MB without a problem for some years now. 
>Am I just misunderstanding you?

 From 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/common/AJPv13.html#Questions%20I%20Have 

"What happens if the request headers > max packet size? There is no 
provision to send a second packet of request headers in case there are more 
than 8K "

So more correctly if the http request has more than 8k in the headers it 
will fail (e.g. posting a lot of form information) and one of the servlets 
I'm trying to hook into Apache is the Chiba XForms implementation which can 
(relatively) easily exceed this limit.

Robert 

Re: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000

Posted by Christopher Schultz <ch...@comcast.net>.
Robert,
> I am attempting to get this combination to work correctly using an in 
> process Tomcat *without* using AJP, as the 8k hard limit on total 
> request size imposed by AJP is not viable in my situation.

There's an 8k maximum request size with the AJP protocol? Really? I've 
been uploading files of several MB without a problem for some years now. 
Am I just misunderstanding you?

-chris


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000

Posted by Tracy Saward <tr...@fleetward.com>.
Hi,
  
We are independent consultants currently undertaking a study of satisfaction
among end-users of Open Source Software, notably Tomcat, for a company which
has asked us for recommendations in terms of deploying policy for such
systems. 
I was hoping to set up a quick (5 minute) telephone interview with yourself
or the appropriate person to discuss your experience with this product to
date.

Please feel free to telephone me anytime, or reply to this e-mail indicating
an appropriate time/person for me to recall.

Thanks for your gracious attention to this request!

Best regards,

Tracy


Tracy Saward
Fleetward Group
85 Maskell Street
St Heliers
Auckland
New Zealand
Tel:   64 9 575 1626
Fax:   64 9 585 0939
Mail: tracys@fleetward.com
 


-----Original Message-----
From: Robert Leftwich [mailto:robert@leftwich.info] 
Sent: Wednesday, November 05, 2003 11:27 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000


I am attempting to get this combination to work correctly using an in 
process Tomcat *without* using AJP, as the 8k hard limit on total request 
size imposed by AJP is not viable in my situation. Now, I can get the setup 
to work using AJP, based on the many how-to's contributed by various people 
(btw thanks for taking the time to make these available) but I cannot find 
a way to disable AJP and have it work.

Is what I am trying to do even possible or does the in-process setup still 
require AJP? If it is possible, I would love to hear from someone that has 
made it work. If not, is there an alternative way to hook the 2 together 
(other than mod_proxy/mod_rewrite as those solutions won't work with the 
servlets I want to incorporate)?

Robert



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org