PDA

View Full Version : Issues about Resin 4.0.4 with JSF 1.2


dynamo2
03-09-2010, 05:56 AM
Hi eveyone, I am new to Resin.

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. (I thought I may missed some configuration.)

emil
03-10-2010, 05:08 PM
Hi dynamo2,

Can you try this on the latest Resin snapshot? There was an issue fixed recently which might address your problem as well. You can grab it from here:

http://www.caucho.com/download/

Thanks,
Emil

dynamo2
03-15-2010, 03:17 PM
Hi Emil,

Thank you for your reply.
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.

Thanks,
Fan

emil
03-15-2010, 06:55 PM
Hi Fan,

Thanks for finding the issue. It sounds like a bug may have been introduced since 3.1 in the content-length header. I filed a bug for it here:

http://bugs.caucho.com/view.php?id=3946

Thanks,
Emil