Mantis - Resin
Viewing Issue Advanced Details
3946 minor always 03-15-10 11:52 01-20-11 13:16
emil  
ferg  
normal  
closed 4.0.4  
no change required  
none    
none 4.0.14  
0003946: content length issues with spring faces & gzip
(rep by dynamo2)

And I got an issue when I run a JSF based web application in Resin 4.0.4:
When I try to open a page, I wait long time and no response in page. Then I shutdown the resin, after the resin was shutted down, the page was displayed.

I used JSF Facelet 1.1+MyFace 1.2+RichFaces 3.3 and Resin server is run on windows 7, 64bits. (To use my own JSF libs, I removed JSF libs from resin/lib.)

There was no such issue in Resin 3.1.10. But it seems in 3.1.10, it cannot reload the class file as what server did in 4.0.4.
Finally, I found that was an issue with Spring Faces.

I have to add following setting to avoid this issue in Resin 4.0.4:

<servlet>
        <servlet-name>Resources Servlet</servlet-name>
        <servlet-class>org.springframework.js.resource.ResourceServlet</servlet-class>
        <!-- Set GzipEnabled to false, otherwise it will cause issue in Resin 4.0.4 to get resource file. -->
        <init-param>
            <param-name>GzipEnabled</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>0</load-on-startup>
</servlet>

Otherwise the, the actually returned data length is less than context-length in http response header. It will cause the browser has no reponse and waiting for download.

Notes
(0004981)
ferg   
01-20-11 13:16   
server/183t

Resin's gzip properly modifies the content-length