glassfish
  1. glassfish
  2. GLASSFISH-20593

[osgi-web] Regression - Unable to locate static and dynamic resources from WAB fragments

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1
    • Component/s: OSGi-JavaEE
    • Labels:
      None

      Description

      This is caused by a recent fix to WebappClassLoader while fixing GLASSFISH-20386. Resources from WEB-INF/lib/*.jar/META-INF/resources/ are no longer searched using getMetainfResources(). Instead, a new class called WebDirContext has been introduced which handled resource lookup from such jars in an optimized way. Currently, OSGi web container uses FileDirContext which needs to be changed a WebDirContext to get things working. I have a fix that works, but unfortunately there is no promoted 4.0.1 builds available in maven repository for us to compile against. This is needed because WebDirContext is newly introduced. This will also make the next version of osgi-web-container backward incompatible with glassfish 3.x releases.

        Issue Links

          Activity

          Hide
          TangYong added a comment -

          >but unfortunately there is no promoted 4.0.1 builds available in maven repository for us to compile against.
          For me, building from trunk behind proxy has made me very puzzle, so, I wish to have a promoted 4.0.1-bxxx available in maven repo very much.

          Show
          TangYong added a comment - >but unfortunately there is no promoted 4.0.1 builds available in maven repository for us to compile against. For me, building from trunk behind proxy has made me very puzzle, so, I wish to have a promoted 4.0.1-bxxx available in maven repo very much.
          Hide
          Sanjeeb Sahoo added a comment -

          Sending osgi-web-container/RELEASENOTE.txt
          Sending osgi-web-container/pom.xml
          Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebDeploymentContext.java
          Adding osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebDirContext.java
          Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebModuleDecorator.java
          Transmitting file data .....
          Committed revision 62225.

          I have released osgi-web-container:2.0.0. Once it's integrated with gf trunk, we will resolve this issue.

          Show
          Sanjeeb Sahoo added a comment - Sending osgi-web-container/RELEASENOTE.txt Sending osgi-web-container/pom.xml Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebDeploymentContext.java Adding osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebDirContext.java Sending osgi-web-container/src/main/java/org/glassfish/osgiweb/OSGiWebModuleDecorator.java Transmitting file data ..... Committed revision 62225. I have released osgi-web-container:2.0.0. Once it's integrated with gf trunk, we will resolve this issue.
          Hide
          Sanjeeb Sahoo added a comment -

          integrated osgi-web-container:2.0.0 in svn #62234.

          Show
          Sanjeeb Sahoo added a comment - integrated osgi-web-container:2.0.0 in svn #62234.

            People

            • Assignee:
              Sanjeeb Sahoo
              Reporter:
              Sanjeeb Sahoo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: