Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1815

Faces servlet returns empty response for resources when using /faces/* as servlet mapping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.2
    • 1.2.3
    • 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.

      Attachments

        1. MYFACES-1815.patch
          2 kB
          Curtiss Howard
        2. MYFACES-1815-2.patch
          3 kB
          Leonardo Uribe
        3. MYFACES-1815-3.patch
          4 kB
          Leonardo Uribe

        Activity

          People

            lu4242 Leonardo Uribe
            bashan Guy Bashan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: