Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1306

The weld-osgi-core-mandatory should import/export the slf4j api

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.1.10.Final
    • Fix Version/s: None
    • Component/s: OSGi support
    • Labels:
      None

      Description

      By only exporting the slf4j api, the weld-osgi-core-mandatory bundle can not be correctly integrated into an existing slf4j setup, such as the one provided by Karaf.

      The following patch solves the problem.

      diff --git a/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd b/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd
      index 44b74ca..4e81452 100644
      --- a/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd
      +++ b/environments/osgi/core/mandatory/src/main/resources/META-INF/weld-osgi-core-mandatory.bnd
      @@ -1,5 +1,6 @@
       Import-Package org.osgi.framework, \
      -               javax.inject,
      +               javax.inject, \
      +               org.slf4j.*;version="[1.6,2)";resolution:=optional,
       
       Export-Package javax.el;version=2.2.0, \
                      javax.decorator; \
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                alesj AleŇ° Justin
                Reporter:
                gnodet Guillaume Nodet
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: