Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b77
    • Fix Version/s: 4.0_b83
    • Component/s: docs
    • Labels:
      None

      Description

      We have also extended --type osgi deployment option in GlassFish deploy command like this:

      asadmin deploy command accepts an argument called -type which can be used to infer the
      type of deployment archive. It accepts a value called osgi to treat an input archive as OSGi
      bundle archive. So, one can deploy OSGi bundle archives using a command as shown
      below:
      asadmin deploy -type osgi <path to bundle jar>
      Decoration of input archive:
      Deploy sub-command of asadmin already accepts a generic properties argument. For osgi
      type deployment, deployment command has been further enhanced to understand the
      properties arguments. In particular, deploy command looks for a key called UriScheme in
      the properties object. If present, it uses it as a URL stream handler to decorate the input
      stream. It uses the rest of the properties to influence the decoratoration process. e.g.,
      GlassFish OSGi Web container registers a URL stream handler called webbundle which has
      the ability to wrap a plain WAR file as a WAB. Now, one can use the deploy command to
      achieve the wrapping of war to WAB like this:

      asadmin deploy --type osgi \
      --properties "UriScheme=webbundle:Bundle-SymbolicName=bar:\
      Import-Package=javax.servlet;javax.servlet.http;
      %20version\\=3.0;resolution\\:
      =mandatory:Web-ContextPath=/foo" \
      /tmp/test_sample1.war

      Strings passed in properties arguments must be encoded to comply with URL encoding
      rules. See the use of "
      " in above command to escape characters that are of special meaning
      to asadmin. For more details of WAR to WAB wrapping, please refer to OSGi Enterprise
      Spec.

        Activity

        Sanjeeb Sahoo created issue -
        Sanjeeb Sahoo made changes -
        Field Original Value New Value
        Fix Version/s 4.0_b58 [ 15647 ]
        Paul Davies made changes -
        Fix Version/s 4.0 [ 10970 ]
        Fix Version/s 4.0_b58 [ 15647 ]
        Paul Davies made changes -
        Fix Version/s 4.0_b76_EE7MS5 [ 16105 ]
        Fix Version/s 4.0 [ 10970 ]
        Mike Fitch made changes -
        Fix Version/s 4.0_b77 [ 16106 ]
        Fix Version/s 4.0_b76_EE7MS5 [ 16105 ]
        Mike Fitch made changes -
        Assignee Paul Davies [ pauldavies ] grisdal [ grisdal ]
        Affects Version/s 4.0_b77 [ 16106 ]
        Affects Version/s 4.0 [ 10970 ]
        Gail Risdal made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Gail Risdal added a comment -

        This has been documented in the deploy, redeploy, and deploydir man pages.

        The fix will become accessible in GlassFish when the next main-docs build is promoted and picked up by GlassFish builds.

        Show
        Gail Risdal added a comment - This has been documented in the deploy, redeploy, and deploydir man pages. The fix will become accessible in GlassFish when the next main-docs build is promoted and picked up by GlassFish builds.
        Gail Risdal made changes -
        Fix Version/s 4.0_b84 [ 16113 ]
        Fix Version/s 4.0_b77 [ 16106 ]
        Hide
        Gail Risdal added a comment -

        Changes are available in current GlassFish builds.

        Show
        Gail Risdal added a comment - Changes are available in current GlassFish builds.
        Gail Risdal made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 4.0_b83 [ 16112 ]
        Fix Version/s 4.0_b84_RC1 [ 16113 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: