Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.2
-
None
-
None
Description
Hello,
I have just upgraded from jsf 1.1.5 to 1.2.2 and it seems like all the resources returns empty response when using /faces/* as servlet mapping.
During the upgrade I made no changes to web.xml. It looks like this:
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>30</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
The web application loaded successfully, but all the resources (images/js/stylesheets) seems to be broken.
I copied one of the images url to try and check a request to image directly. For example:
http://localhost:8080/myapp/faces/images/logo.jpg
and I got an empty response.
When I removed the faces:
http://localhost:8080/myapp/images/logo.jpg
the image was loaded ok.
I made further investigation and changed the mapping to: *.faces and it seemed to be working fine.
Thanks,
Guy.