[ https://issues.apache.org/jira/browse/SLING-11906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17810441#comment-17810441 ]
Robert Munteanu edited comment on SLING-11906 at 1/24/24 3:45 PM: ------------------------------------------------------------------ For the record, when trying to upgrade to slf4j 2.0.11 the following errors come up - Oak bundles importing org.slf4j.event with narrow range - Sling commons.log importing org.slf4j.event with narrow range - missing serviceloader mediator capability {noformat} [ERROR] [bundle-packages] org.apache.jackrabbit:oak-lucene:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.jackrabbit:oak-store-document:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.sling:org.apache.sling.commons.log:5.4.2: Bundle is importing packages [Package org.slf4j.event;version=[1.7,2), Package org.slf4j.spi;version=[1.7,2)] with start order 1 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.jackrabbit:oak-commons:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.jackrabbit:oak-core:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.jackrabbit:oak-query-spi:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [requirements-capabilities] org.slf4j:slf4j-api:2.0.11: Artifact org.slf4j:slf4j-api:2.0.11 requires [slf4j.api/2.0.11] osgi.serviceloader; osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider; filter:="(osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider)" in start level 1 but no artifact is providing a matching capability in this start level. {noformat} ----- Edit: the commons.log import is probably coming from the ch.qos.logback.classic packages that we wrap and re-export. was (Author: rombert): For the record, when trying to upgrade to slf4j 2.0.11 the following errors come up - Oak bundles importing org.slf4j.event with narrow range - Sling commons.log importing org.slf4j.event with narrow range - missing serviceloader mediator capability {noformat} [ERROR] [bundle-packages] org.apache.jackrabbit:oak-lucene:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.jackrabbit:oak-store-document:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.sling:org.apache.sling.commons.log:5.4.2: Bundle is importing packages [Package org.slf4j.event;version=[1.7,2), Package org.slf4j.spi;version=[1.7,2)] with start order 1 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.jackrabbit:oak-commons:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.jackrabbit:oak-core:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [bundle-packages] org.apache.jackrabbit:oak-query-spi:1.60.0: Bundle is importing package org.slf4j.event;version=[1.7,2) with start order 15 but no bundle is exporting these for that start order in the required version range. [ERROR] [requirements-capabilities] org.slf4j:slf4j-api:2.0.11: Artifact org.slf4j:slf4j-api:2.0.11 requires [slf4j.api/2.0.11] osgi.serviceloader; osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider; filter:="(osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider)" in start level 1 but no artifact is providing a matching capability in this start level. {noformat} > Migrate to slf4j 2.x > -------------------- > > Key: SLING-11906 > URL: https://issues.apache.org/jira/browse/SLING-11906 > Project: Sling > Issue Type: Improvement > Reporter: Eric Norman > Priority: Major > Fix For: Commons Log 6.0.0 > > > Increasingly more libraries have been migrating to slf4j 2.x (for example > logback 1.3+, tika 2.5+ and jetty 10+) > To be compatible with those, the sling commons log bundle should migrate to > slf4j v2.x (and logback v1.4.x or v1.3.x?) > It looks like slf4j 2.x exports both 2.x and 1.7.36 versions of the exported > packages, so it should hopefully be compatible with existing bundles that are > importing the 1.x version of the slf4j packages. -- This message was sent by Atlassian Jira (v8.20.10#820010)