Geronimo
  1. Geronimo
  2. GERONIMO-6353

Add "DynamicImport-Package: *" when using install-bundle command to transform a jar into a bundle

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.0-beta-1
    • Fix Version/s: 3.0.0
    • Component/s: deployment
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      Think this scenario:
      User has a custom Tomcat Valve class to be defined via server.xml, first he generated a jar from an IDE, then use install-bundle command to install into the server, then the user defines the valve in the server.xml to use.

      This scenario introduces a cycle dependencies relationship between the user bundle and Tomcat bundles.
      1. To resolve the user bundle, the Tomcat bundles need to be resolved first
      2. To start Geronimo Tomcat module, the user bundle needs to be resolved first.

      Currently, the install-bundle command add "resolution:=optional" properties to the installed user bundle, though the user bundle could be started when server boot, but if the there are packages cannot be resolved with "resolution:=optional", those packages won't be resolved anymore.

      An improvement is to add "DynamicImport-Package: *" header to the generated menifest.

        Activity

        Forrest Xia created issue -
        Forrest Xia committed 1339530 (1 file)
        Reviews: none

        GERONIMO-6353 Add "DynamicImport-Package: *" when using install-bundle command to transform a jar into a bundle

        Forrest Xia committed 1339531 (1 file)
        Reviews: none

        GERONIMO-6353 Add "DynamicImport-Package: *" when using install-bundle command to transform a jar into a bundle, for trunk

        Forrest Xia made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Forrest Xia
            Reporter:
            Forrest Xia
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development