glassfish
  1. glassfish
  2. GLASSFISH-20777

Web fragment resources not found on exploded War

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.2_dev
    • Fix Version/s: None
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      Windows

      Description

      I tried to use exploded Wars with included and also exploded Web Fragments for shorter development turn arounds.
      This didn't really work out because the WebappClassLoader ignores resources in META-INF/resources.
      Example war directory structure:
      ExplodedWar
      WEB-INF
      lib
      WebFragment.jar(directory)
      META-INF/resources
      hello.html
      If WebFragment.jar is packaged as Jar 'hello.html' is found fine.
      Our workaround for now is to use custom javax.faces.view.facelets.ResourceResolver which first calls WebappClassLoader#getResource("META-INF/resources" + path) in Development project stage.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Shing Wai Chan
            Reporter:
            michael.friedrich
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: