OK, I get it. I have bundles with poms that have slf4j-api in their dependencies, so the karaf feature generator pulls in the slf4j-api, and that's bad. I've worked around it by adding slf4j-log4j to my bundles, so now the messages go through log4j to get to pax-logging.
On Fri, Jul 24, 2015 at 8:35 AM, Jean-Baptiste Onofré <[email protected]> wrote: > It's not a feature, it's directly a system bundle (that you can see with la > and defined in etc/startup.properties). > > Regards > JB > > On 07/24/2015 12:52 PM, Benson Margulies wrote: >> >> feature:list does not list pax-logging. >> >> On Fri, Jul 24, 2015 at 6:49 AM, Benson Margulies <[email protected]> >> wrote: >>> >>> When I try to install a feature that lists >>> >>> <bundle start-level="80">mvn:org.slf4j/slf4j-api/1.7.5</bundle> >>> >>> it complains that it cannot find an implementation: >>> >>> [caused by: Unable to resolve slf4j.api/1.7.5: missing requirement >>> [slf4j.api/1.7.5] osgi.wiring.package; >>> filter:="(&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))"]] >>> >>> Here's the whole message: >>> >>> >>> karaf@root()> feature:install rosapi-endpoint-feature >>> Error executing command: Unable to resolve root: missing requirement >>> [root] osgi.identity; osgi.identity=rosapi-endpoint-feature; >>> type=karaf.feature; version="[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]"; >>> >>> filter:="(&(osgi.identity=rosapi-endpoint-feature)(type=karaf.feature)(version>=0.0.1.SNAPSHOT)(version<=0.0.1.SNAPSHOT))" >>> [caused by: Unable to resolve rosapi-endpoint-feature/0.0.1.SNAPSHOT: >>> missing requirement [rosapi-endpoint-feature/0.0.1.SNAPSHOT] >>> osgi.identity; osgi.identity=slf4j.api; type=osgi.bundle; >>> version="[1.7.5,1.7.5]"; resolution:=mandatory [caused by: Unable to >>> resolve slf4j.api/1.7.5: missing requirement [slf4j.api/1.7.5] >>> osgi.wiring.package; >>> filter:="(&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))"]] > > > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com
