No, you can't remove org.ops4j.pax.logging.pax-logging-api bundle, it's very fundamental bundle of OSGi container and provide OSGi Logging Service, take a look at
And you shouldn't install ch.qos.logback.classic bundle yourself, all logging staff should be from pax-logging-api and pax-logging-service bundle already
Now I want to use pax-logging-api bundle instead of ch.qos.logback.classic. So I remove ch.qos.logback.classic. But still I got an error:
Unable to start bundle 388: Unresolved constraint in bundle slf4j.api [388 : Unable to resolve 388.0: missing requirement [388.0 osgi.wiring.package; (&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))
pax-logging-api exports org.slf4j.impl package. So why I got this error?
You need remove slf4j.api bundle as well, as I mentioned, all logging staff should be from pax-logging-api and pax-logging-service bundle already, so you shouldn't install any logging bundle like slf4j and log4j.