AW: AW: Problem with Tomcat + Apache + mod_jk

2004-06-23 Thread Jens . Mueller
Hello ming fang,

thanks for your help.
I found no 'new' way, to disable the chunked response.
What I did, is to set request.setContentLength(0);

When I connect directly to the tomcat, I'll see this header:
 Content-Length: 0

But when I connect to the Apache, I'll see this header:
 Transfer-Encoding: chunked

It is the same request.

All the tips I found, told to set set Content-Length. But when I set it,
it'll be ignored whe I connect through apache and mod_jk.


- Jens

-Ursprüngliche Nachricht-
Von: ming fang [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 22. Juni 2004 20:05
An: Tomcat Users List
Betreff: Re: AW: Problem with Tomcat + Apache + mod_jk


first you seem to have a problem with those 302 responses from tomcat.  
you have to fix that first.

i'm using tomcat5 + apache2 + mod_jk2.
in my setup, the chunked header comes from tomcat.

just search google for tomcat disable chunking.  there are lots of 
hits.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Tomcat + Apache + mod_jk

2004-06-22 Thread Jens . Mueller
Hello,

I have new cognitions.
The failure only appears, when the server sends a 302 - Moved Temporarily,
so a redirect.
But not every time.

The HTTP-Request looks as follow:


GET /login/ HTTP/1.1\r\n
Host: x\r\n
Cookie: JSESSIONID=C825930D6AACACFF3C38D40E9A1AB975.e1\r\n
\r\n

And now the Response:

0\r\n
\r\n
HTTP/1.1 200 OK\r\n
Date: Tue, 22 Jun 2004 12:19:43 GMT\r\n
Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e\r\n
Content-Length: 5123\r\n
Content-Language: de\r\n
Content-Type: text/html;charset=ISO-8859-1\r\n
\r\n
**SOME CONTENT**


The first two lines from the Response are wrong at this place and I don't
know, where they come from.
Has anyone a tip for me, where the problem could be??

Greets
Jens


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Gesendet: Montag, 21. Juni 2004 14:37
An: [EMAIL PROTECTED]
Betreff: *** Mail von extern mit internem Absender ***Problem with
Tomcat + Apache + mod_jk


Hello List,

I have a problem with Tomcat 4.1.27, Apache 1.3.26, mod_jk 1.2.5, JDK1.4.2.
Somethimes the Apache sends a wrong HTTP-Answer and I'll see the following
HTTP-Header in the browser:

#3Apache Tomcat/4.1.27 
HTTP/1.1 302 Moved Temporarily Date: Fri, 18 Jun 2004 11:23:55 GMT Server:
Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e Location:
http://x/index.jsp Keep-Alive: timeout=50, max=297 Connection:
Keep-alive Transfer-Encoding: chunked Content-Type: text/plain 0

What's wrong?

I could post the configurations of apache an tomcat if it helps.

Greets
Jens

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Tomcat + Apache + mod_jk

2004-06-22 Thread ming fang
it looks like the respond is in chunked format.  you should have a 
header that reads Transfer-Encoding:chunked.
mod_jk1/2 both have serious bugs with chunked encoding.  try going to 
tomcat direct to see with the proper header is there.

On Jun 22, 2004, at 8:33 AM, [EMAIL PROTECTED] wrote:
Hello,
I have new cognitions.
The failure only appears, when the server sends a 302 - Moved 
Temporarily,
so a redirect.
But not every time.

The HTTP-Request looks as follow:
GET /login/ HTTP/1.1\r\n
Host: x\r\n
Cookie: JSESSIONID=C825930D6AACACFF3C38D40E9A1AB975.e1\r\n
\r\n
And now the Response:
0\r\n
\r\n
HTTP/1.1 200 OK\r\n
Date: Tue, 22 Jun 2004 12:19:43 GMT\r\n
Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 
OpenSSL/0.9.6e\r\n
Content-Length: 5123\r\n
Content-Language: de\r\n
Content-Type: text/html;charset=ISO-8859-1\r\n
\r\n
**SOME CONTENT**

The first two lines from the Response are wrong at this place and I 
don't
know, where they come from.
Has anyone a tip for me, where the problem could be??

Greets
Jens
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Gesendet: Montag, 21. Juni 2004 14:37
An: [EMAIL PROTECTED]
Betreff: *** Mail von extern mit internem Absender ***Problem with
Tomcat + Apache + mod_jk
Hello List,
I have a problem with Tomcat 4.1.27, Apache 1.3.26, mod_jk 1.2.5, 
JDK1.4.2.
Somethimes the Apache sends a wrong HTTP-Answer and I'll see the 
following
HTTP-Header in the browser:

#3Apache Tomcat/4.1.27
HTTP/1.1 302 Moved Temporarily Date: Fri, 18 Jun 2004 11:23:55 GMT 
Server:
Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e 
Location:
http://x/index.jsp Keep-Alive: timeout=50, max=297 Connection:
Keep-alive Transfer-Encoding: chunked Content-Type: text/plain 0

What's wrong?
I could post the configurations of apache an tomcat if it helps.
Greets
Jens
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-ming fang
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with Tomcat + Apache + mod_jk

2004-06-22 Thread Jens . Mueller
Without Apache and mod_jk it works fine, so the application is clean.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Tomcat + Apache + mod_jk

2004-06-22 Thread ming fang
you can try turning off chunking in tomcat.
On Jun 22, 2004, at 9:12 AM, [EMAIL PROTECTED] wrote:
Without Apache and mod_jk it works fine, so the application is clean.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-ming fang
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Problem with Tomcat + Apache + mod_jk

2004-06-22 Thread Jens . Mueller
The response from the tomcat looks as follow:
=
HTTP/1.1 302 Moved Temporarily
Set-Cookie: JSESSIONID=E733DF07439078F09D5DD92695DA91F6.e1; Path=/
Location: x/login/
Content-Type: text/plain
Content-Length: 0
Date: Tue, 22 Jun 2004 14:22:37 GMT
Server: Apache Coyote/1.0


And now the response from the apache:
=
HTTP/1.1 302 Moved Temporarily
Date: Tue, 22 Jun 2004 14:26:08 GMT
Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e
Set-Cookie: JSESSIONID=34F73FFFDB846B67D9AAD027DA152B3E.e1; Path=/
Location: x/login/
Transfer-Encoding: chunked
Content-Type: text/plain


Only if I send the request to the apache I will recieve a response with the
header 'Transfer-Encoding: chunked'.
Where does this header come from? From the apache or from the tomcat? When
it comes from tomcat, it is possible to disable this 'feature'`?


Greets Jens


-Ursprüngliche Nachricht-
Von: ming fang [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 22. Juni 2004 15:10
An: Tomcat Users List
Betreff: Re: Problem with Tomcat + Apache + mod_jk


it looks like the respond is in chunked format.  you should have a 
header that reads Transfer-Encoding:chunked.
mod_jk1/2 both have serious bugs with chunked encoding.  try going to 
tomcat direct to see with the proper header is there.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Problem with Tomcat + Apache + mod_jk

2004-06-22 Thread ming fang
first you seem to have a problem with those 302 responses from tomcat.  
you have to fix that first.

i'm using tomcat5 + apache2 + mod_jk2.
in my setup, the chunked header comes from tomcat.
just search google for tomcat disable chunking.  there are lots of 
hits.

On Jun 22, 2004, at 10:30 AM, [EMAIL PROTECTED] wrote:
The response from the tomcat looks as follow:
=
HTTP/1.1 302 Moved Temporarily
Set-Cookie: JSESSIONID=E733DF07439078F09D5DD92695DA91F6.e1; Path=/
Location: x/login/
Content-Type: text/plain
Content-Length: 0
Date: Tue, 22 Jun 2004 14:22:37 GMT
Server: Apache Coyote/1.0
And now the response from the apache:
=
HTTP/1.1 302 Moved Temporarily
Date: Tue, 22 Jun 2004 14:26:08 GMT
Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e
Set-Cookie: JSESSIONID=34F73FFFDB846B67D9AAD027DA152B3E.e1; Path=/
Location: x/login/
Transfer-Encoding: chunked
Content-Type: text/plain
Only if I send the request to the apache I will recieve a response 
with the
header 'Transfer-Encoding: chunked'.
Where does this header come from? From the apache or from the tomcat? 
When
it comes from tomcat, it is possible to disable this 'feature'`?

Greets Jens
-Ursprüngliche Nachricht-
Von: ming fang [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 22. Juni 2004 15:10
An: Tomcat Users List
Betreff: Re: Problem with Tomcat + Apache + mod_jk
it looks like the respond is in chunked format.  you should have a
header that reads Transfer-Encoding:chunked.
mod_jk1/2 both have serious bugs with chunked encoding.  try going to
tomcat direct to see with the proper header is there.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-ming fang
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with Tomcat + Apache + mod_jk

2004-06-21 Thread Jens . Mueller
Hello List,

I have a problem with Tomcat 4.1.27, Apache 1.3.26, mod_jk 1.2.5, JDK1.4.2.
Somethimes the Apache sends a wrong HTTP-Answer and I'll see the following
HTTP-Header in the browser:

#3Apache Tomcat/4.1.27 
HTTP/1.1 302 Moved Temporarily Date: Fri, 18 Jun 2004 11:23:55 GMT Server:
Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e Location:
http://x/index.jsp Keep-Alive: timeout=50, max=297 Connection:
Keep-alive Transfer-Encoding: chunked Content-Type: text/plain 0

What's wrong?

I could post the configurations of apache an tomcat if it helps.

Greets
Jens

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]