title: karaf / filter:="(&(osgi.wiring.package=org.apache.logging.log4j)(version>=2.17.0)
body: <p>I am upgrading from log4j-slf4j-impl 2.12.0  to 2.17.1. In my previous code I have nothing else except</p>
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
          &lt;version&gt;${slf4j.version}&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p>Now that I have upgraded to 2.17.1 I got the following error:</p>
  <p>org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.apache.logging.log4j.slf4j-impl/2.17.1: missing requirement [org.apache.logging.log4j.slf4j-impl/2.17.1] osgi.wiring.package; filter:=&quot;(&amp;(osgi.wiring.package=org.apache.logging.log4j)(version&gt;=2.17.0)(!(version&gt;=3.0.0)))&quot;
  at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
  at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:420)
  at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378)
  at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332)
  at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257)
  at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:393)
  at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062)
  at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at java.lang.Thread.run(Thread.java:748)</p>
  <p>so I have included in my pom.xml two more dependencies to check if that allivates the problem. These other two dependencies are:</p>
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
          &lt;version&gt;2.17.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
          &lt;version&gt;2.17.1&lt;/version&gt;
      &lt;/dependency&gt;   
  </code></pre>
  <p>but it does not help. Compilation process is just fine. Running is where the problem exist.</p>
  <p>this is part of my pom.xml:</p>
  <pre><code>    &lt;slf4j.version&gt;2.17.1&lt;/slf4j.version&gt;
      &lt;sonar.coverage.exclusions&gt;**/Activator.java&lt;/sonar.coverage.exclusions&gt;
  &lt;/properties&gt;
  &lt;dependencies&gt;
      &lt;!-- test scoped dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;!-- logger dependencies --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
          &lt;version&gt;2.17.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
          &lt;version&gt;2.17.1&lt;/version&gt;
      &lt;/dependency&gt;       
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
          &lt;version&gt;${slf4j.version}&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p><strong>what else I am missing here ?</strong></p>