Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-380

Missing Export-Package declarations in logback-classic OSGi bundle

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 0.9.15
    • logback-classic
    • None
    • OSGi environment

    Description

      logback-classic OSGi bundle doesn't export logback implementation packages. These packages need to be imported by bundles implementing custom logback Appenders etc.

      The problem is most likely caused a misconfiguration of maven-bundle-plugin in logback-classic POM. Current configuration:

      <instructions>
      <Export-Package>ch.qos.logback.classic.*</Export-Package>
      <Export-Package>org.slf4j.impl;version=1.5.6</Export-Package>
      <Import-Package>sun.reflect;resolution:=optional,
      javax.jms;resolution:=optional,
      *
      </Import-Package>

      <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
      </instructions>

      Suggested configuration:

      <instructions>
      <Export-Package>ch.qos.logback.classic.*,
      org.slf4j.impl;version=1.5.6
      </Export-Package>
      <Import-Package>sun.reflect;resolution:=optional,
      javax.jms;resolution:=optional,
      *
      </Import-Package>

      <Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
      </instructions>

      Second Export-Package declaration seems to override the first one.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            pjuhos Pavol Juhos
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: