[ https://issues.apache.org/jira/browse/LOGGING-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory resolved LOGGING-193. ------------------------------------- Fix Version/s: 1.3.3 Resolution: Fixed > OSGi import to org.apache.logging.log4j.spi is missing > ------------------------------------------------------ > > Key: LOGGING-193 > URL: https://issues.apache.org/jira/browse/LOGGING-193 > Project: Commons Logging > Issue Type: Bug > Affects Versions: 1.3.0, 1.3.1, 1.3.2 > Environment: Eclipse Equinox > OpenJDK 21 > Reporter: Philippe Marschall > Priority: Major > Labels: OSGI, OSGi > Fix For: 1.3.3 > > > 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 -- This message was sent by Atlassian Jira (v8.20.10#820010)