4 Replies Latest reply on Sep 20, 2011 6:19 AM by deleze

    mod_proxy_ajp doesn't use the same HTTP header as JBossweb

    deleze

      Hi,

       

      I use JBoss-5.0/JBossWeb-2.1 and Apache/2.2.16 (Ubuntu) mod_proxy_ajp on Linux Ubuntu 10.10.

       

      Sometimes the response in the browser doesn't use the HTTP header from JBoss like in the following exemple:

      Logged with the valve org.apache.catalina.valves.RequestDumperValve in JBoss:

                authType=FORM                                                         
           contentLength=62911                                                        
             contentType=text/html;charset=UTF-8                                      
                  header=X-Powered-By=Servlet 2.5; JBoss-5.0/JBossWeb-2.1             
                  header=Liferay-Portal=Liferay Portal Community Edition 6.0.6 CE (Bun...
                  header=ETag="46eddb3b"                                              
                  header=Content-Type=text/html;charset=UTF-8                         
                  header=Content-Length=62911                                         
                 message=null                                                         
              remoteUser=10174                                                        
                  status=200 
      

       

      Received in browser:

      HTTP/1.1 200 OK
      Date: Wed, 14 Sep 2011 08:07:53 GMT
      Keep-Alive: timeout=15, max=53
      Connection: Keep-Alive
      Transfer-Encoding: chunked
      Content-Type: text/plain
      

       

      The content type is wrong and it miss all others header parameters

      What is strange, this error occurs sometimes. In general, return the correct data, but sometimes not.

      I have 3 installations with the same setup. It is more frequent on 2 of these.

       

      With this wrong header, the HTML source is shown by the browser instead of the interpreted page. If I user a gzip servlet filter, I get the save as dialog...

       

      I can send a tcpdump of the communication between Apache and JBoss if required.

       

      Has some one the same problem?

       

      Olivier.