Uploaded image for project: 'Commons Logging'
  1. Commons Logging
  2. LOGGING-193

OSGi import to org.apache.logging.log4j.spi is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0, 1.3.1, 1.3.2
    • 1.3.3
    • Eclipse Equinox
      OpenJDK 21

    Description

      The commons-logging bundle is missing an import package declaration on org.apache.logging.log4j.spi, is only imports has an import package declaration to org.apache.logging.log4j.

      We are running commons-logging 1.3.2 in Eclipse Equinox with Log4j API (org.apache.logging.log4j.api) present. This triggers the loading of org.apache.commons.logging.impl.Log4jApiLogFactory, however this fails because an import package declaration on org.apache.logging.log4j.spi is missing.

      It seems to be introduced by https://github.com/apache/commons-logging/pull/177

      The issue is similar to https://github.com/eclipse-mylyn/org.eclipse.mylyn/issues/373 but instead of org.slf4j.spi.LocationAwareLogger not being found the class not being found is org.apache.logging.log4j.spi.LoggerAdapter.

      The stack trace looks similar to LOGGING-192 but I do not assume this bug is OSGi related.

      PR
      https://github.com/apache/commons-logging/pull/268

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marschall Philippe Marschall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: