Re: AJP connector is blocking JSON responses

2014-08-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Omar, On 8/10/14, 1:18 PM, Omar Belkhodja wrote: > Finally, I almost understood the problem. > > The framework was generating a response without a Content-Length > header. The AJP connector seems to be adding it as a > Content-Length=0, although if

Re: AJP connector is blocking JSON responses

2014-08-10 Thread Omar Belkhodja
Finally, I almost understood the problem. The framework was generating a response without a Content-Length header. The AJP connector seems to be adding it as a Content-Length=0, although if there are data. So, currenly I have forced the framework to add the Content-Length header. In fact, it is s

Re: AJP connector is blocking JSON responses

2014-08-10 Thread Omar Belkhodja
I have compared JSON logs (NOK) with XML logs (OK). The main differences are here: JSON = ajp_unmarshal_response::jk_ajp_common.c (688): Number of headers is = 6 ajp_unmarshal_response::jk_ajp_common.c (744): Header[0] [Pragma] = [no-cache] ajp_unmarshal_response::jk_ajp_common.c (744): He

Re: AJP connector is blocking JSON responses

2014-08-10 Thread Omar Belkhodja
Sorry, I forgot to answer to the second part of your e-mail. Regarding Apache directives, I didn't add any specific directives. But, I'm not the one that have configured all the server, so I'm not sure at 100%. Regards, Omar 2014-08-10 14:56 GMT+01:00 Rainer Jung : > Am 10.08.2014 um 15:41 sch

Re: AJP connector is blocking JSON responses

2014-08-10 Thread Omar Belkhodja
Thanks for your answer Rainer. Please find attached the logs you requested. Its is really strange, because it seems from the logs that jk_mod received the answer... Regards, Omar 2014-08-10 14:56 GMT+01:00 Rainer Jung : > Am 10.08.2014 um 15:41 schrieb Omar Belkhodja: > > Hi, >> >> I'm adding

Re: AJP connector is blocking JSON responses

2014-08-10 Thread Rainer Jung
Am 10.08.2014 um 15:41 schrieb Omar Belkhodja: Hi, I'm adding HTTPS access to my Java site. For that, I have chosen to leave the management of HTTPS to an Apache server. The Apache server is connecting to tomcat through mod_jk and AJP 1.3. I'm logging all my Tomcat request/responses, and I'm fa

AJP connector is blocking JSON responses

2014-08-10 Thread Omar Belkhodja
Hi, I'm adding HTTPS access to my Java site. For that, I have chosen to leave the management of HTTPS to an Apache server. The Apache server is connecting to tomcat through mod_jk and AJP 1.3. I'm logging all my Tomcat request/responses, and I'm facing the following problem: - If I access my URL