adwsingh commented on PR #1165:
URL: https://github.com/apache/logging-log4j2/pull/1165#issuecomment-1364173710
@rgoers This is the stack trace we have get in one of our unit tests in a CI
build environment.
```
[junit] java.lang.NoSuchMethodError:
org.osgi.framework.FrameworkUtil.getBundle(Ljava/lang/Class;)Lorg/osgi/framework/Bundle;
[junit] at
org.apache.logging.log4j.util.OsgiServiceLocator.loadServices(OsgiServiceLocator.java:52)
[junit] at
org.apache.logging.log4j.util.ServiceLoaderUtil.loadServices(ServiceLoaderUtil.java:91)
[junit] at
org.apache.logging.log4j.util.PropertiesUtil$Environment.<init>(PropertiesUtil.java:471)
[junit] at
org.apache.logging.log4j.util.PropertiesUtil$Environment.<init>(PropertiesUtil.java:444)
[junit] at
org.apache.logging.log4j.util.PropertiesUtil.<init>(PropertiesUtil.java:88)
[junit] at
org.apache.logging.log4j.util.PropertiesUtil.<init>(PropertiesUtil.java:80)
[junit] at
org.apache.logging.log4j.util.PropertiesUtil.<clinit>(PropertiesUtil.java:56)
```
We get the `NoSuchMethodError` while attempting to load the Osgi itself.
> Due to the bundle descriptor in logj4-api, an OSGI container prior to
Release 6 will not load the bundle.
@ppkarwasz can you point me to the code in `log4j-api` which does this check?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]