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

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

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • None
    • 1.1.10.Final
    • OSGi support
    • 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; \
      

      Attachments

        Activity

          People

            ajustin@redhat.com Ales Justin
            g_nodet Guillaume Nodet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: