Pax Exam Remote Bundle Context bundle contains SLF4j leading to error on startup [backport 3.x]

Description

When starting up the Karaf Test Container, I get the following error :

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.

Using a debugger I traced this to the Pax Exam RBC bundle that seems to
embed the SLF4J-api as can be seen in this header :

Bundle-ClassPath =
.,ops4j-base-lang-1.4.0.jar,pax-swissbox-core-1.7.1.jar,pax-swissbox-lifecycle-1.7.1.jar,pax-swissbox-tracker-1.7.1.jar,slf4j-api-1.6.6.jar,ops4j-base-net-1.4.0.jar,ops4j-base-monitors-1.4.0.jar

Shouldn't it import the SLF4j instead of embedding it ? Btw the
org.slf4j.impl is not exported by pax-logging anymore so this is why
this fails.

Environment

Karaf Test Container

Assignee

Harald Wellmann

Reporter

Serge Huber

Labels

Components

Fix versions

Affects versions

Priority

Major
Configure