glassfish
  1. glassfish
  2. GLASSFISH-20977

gf-client-module.jar is an OSGi bundle, but should not be

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: build_system
    • Labels:
      None

      Description

      Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.glassfish.main.appclient.gf-client-module [67]: Unable to resolve 67.0: missing requirement [67.0] osgi.wiring.package; (osgi.wiring.package=org.jboss.weld.environment.se)
      at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2037)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
      at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:210)

        Activity

        Hide
        Romain Grécourt added a comment - - edited

        removing the OSGi metadata, makes the bundle starts.

        However, it's still installed and shows up as:

           83|Active     |    1|file:/Users/romano/workspaces/glassfish/main2/appserver/distributions/glassfish/target/stage/glassfish4/glassfish/modules/gf-client-module.jar (0.0.0)
        
        Show
        Romain Grécourt added a comment - - edited removing the OSGi metadata, makes the bundle starts. However, it's still installed and shows up as: 83|Active | 1|file:/Users/romano/workspaces/glassfish/main2/appserver/distributions/glassfish/target/stage/glassfish4/glassfish/modules/gf-client-module.jar (0.0.0)
        Hide
        Romain Grécourt added a comment -

        We will instead make the org.jboss.weld.environment.se import optional to allow this bundle to be started.

        Show
        Romain Grécourt added a comment - We will instead make the org.jboss.weld.environment.se import optional to allow this bundle to be started.
        Hide
        Romain Grécourt added a comment -
        Log Message:
        ------------
        fix for GLASSFISH-20977
        
        
        Revisions:
        ----------
        63645
        
        
        Modified Paths:
        ---------------
        trunk/main/appserver/appclient/client/acc/osgi.bundle
        
        
        Diffs:
        ------
        Index: trunk/main/appserver/appclient/client/acc/osgi.bundle
        ===================================================================
        --- trunk/main/appserver/appclient/client/acc/osgi.bundle	(revision 63644)
        +++ trunk/main/appserver/appclient/client/acc/osgi.bundle	(revision 63645)
        @@ -43,3 +43,12 @@
                                 org.glassfish.appclient.client.acc; \
                                 org.glassfish.appclient.client.acc.callbackhandler;
                                 org.glassfish.appclient.common; version=${project.osgi.version}
        +
        +# GLASSFISH-20977
        +# This bundle is an OSGi bundle for convenience.
        +# However it needs org.jboss.weld.environment.se package, which isn't provided in GlassFish.
        +# The result is a non start-able OSGi bundle.
        +# Making this import optional.
        +Import-Package: \
        +                        org.jboss.weld.environment.se;resolution:=optional, \
        +                        *
        
        Show
        Romain Grécourt added a comment - Log Message: ------------ fix for GLASSFISH-20977 Revisions: ---------- 63645 Modified Paths: --------------- trunk/main/appserver/appclient/client/acc/osgi.bundle Diffs: ------ Index: trunk/main/appserver/appclient/client/acc/osgi.bundle =================================================================== --- trunk/main/appserver/appclient/client/acc/osgi.bundle (revision 63644) +++ trunk/main/appserver/appclient/client/acc/osgi.bundle (revision 63645) @@ -43,3 +43,12 @@ org.glassfish.appclient.client.acc; \ org.glassfish.appclient.client.acc.callbackhandler; org.glassfish.appclient.common; version=${project.osgi.version} + +# GLASSFISH-20977 +# This bundle is an OSGi bundle for convenience. +# However it needs org.jboss.weld.environment.se package, which isn't provided in GlassFish. +# The result is a non start-able OSGi bundle. +# Making this import optional. +Import-Package: \ + org.jboss.weld.environment.se;resolution:=optional, \ + *

          People

          • Assignee:
            Romain Grécourt
            Reporter:
            Romain Grécourt
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: