[ 
https://issues.apache.org/jira/browse/LOGGING-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860825#comment-17860825
 ] 

Gary D. Gregory commented on LOGGING-193:
-----------------------------------------

TY [~marschall] 

PR merged and available in snapshot builds in 
[https://repository.apache.org/content/repositories/snapshots/commons-logging/commons-logging/]

 

> 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)

Reply via email to