Hi, usually you need two bundles for pax-logging. One is the pax-logging-service, the other one is the pax-logging-api bundle.
Btw. talking of elderly documentation, if you see improvements for the documentation feel free to improve it. OPS4j is a very open community. Like you find an issue you fix it ;-) regards, Achim 2015-08-12 18:41 GMT+02:00 Benson Margulies <[email protected]>: > The pax logging documentation is a bit elderly. > > My goal is to set up a shell in which bundles that import org.slf4j or > log4j API's are happy, and in which the resulting log messages are > visible (at least) to the felix:log commands. Is there a recipe > somewhere? When I try to add the pax logging service, I get > > !ENTRY org.ops4j.pax.logging.pax-logging-service 4 0 2015-08-12 > 12:29:35.130 > !MESSAGE FrameworkEvent ERROR > !STACK 0 > org.osgi.framework.BundleException: Could not resolve module: > org.ops4j.pax.logging.pax-logging-service [30] > Unresolved requirement: Import-Package: com.ibm.uvm.tools; > resolution:="optional" > Unresolved requirement: Import-Package: com.sun.jdmk.comm; > resolution:="optional" > Unresolved requirement: Import-Package: javax.jmdns; > resolution:="optional" > Unresolved requirement: Import-Package: javax.jms; > version="[1.1.0,2.0.0)"; resolution:="optional" > Unresolved requirement: Import-Package: javax.mail; > resolution:="optional" > Unresolved requirement: Import-Package: javax.mail.internet; > resolution:="optional" > Unresolved requirement: Import-Package: > org.knopflerfish.service.log; provider="paxlogging"; > version="[1.1.0,2.0.0)" > > I presume it's the last one that is killing me: why is a knoplerfish > package required? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master

