We're updating the issue view to help you get more done. 

Getting started on Karaf 4.2.2 with Pax Wicket 5.0.0 fails

Description

When following the guidelines from Getting started I get an exception on missing artifact SLF4J version 1.7.2. Karaf itself comes with version 1.7.12.

Journal of steps taken and the results:

karaf@root()> feature:repo-add mvn:org.ops4j.pax.wicket/paxwicket/5.0.0/xml/features
Adding feature url mvn:org.ops4j.pax.wicket/paxwicket/5.0.0/xml/features
karaf@root()> feature:repo-add mvn:org.ops4j.pax.wicket/features/5.0.0/xml/features
Adding feature url mvn:org.ops4j.pax.wicket/features/5.0.0/xml/features
karaf@root()> feature:install pax-wicket
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=pax-wicket; type=karaf.feature; version="[5.0.0,5.0.0]"; filter:="(&(osgi.identity=pax-wicket)(type=karaf.feature)(version>=5.0.0)(version<=5.0.0))" [caused by: Unable to resolve pax-wicket/5.0.0: missing requirement [pax-wicket/5.0.0] osgi.identity; osgi.identity=wicket; type=karaf.feature [caused by: Unable to resolve wicket/8.1.0: missing requirement [wicket/8.1.0] osgi.identity; osgi.identity=slf4j.api; type=osgi.bundle; version="[1.7.2,1.7.2]"; resolution:=mandatory [caused by: Unable to resolve slf4j.api/1.7.2: missing requirement [slf4j.api/1.7.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))"]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392)
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:388)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
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)
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve pax-wicket/5.0.0: missing requirement [pax-wicket/5.0.0] osgi.identity; osgi.identity=wicket; type=karaf.feature [caused by: Unable to resolve wicket/8.1.0: missing requirement [wicket/8.1.0] osgi.identity; osgi.identity=slf4j.api; type=osgi.bundle; version="[1.7.2,1.7.2]"; resolution:=mandatory [caused by: Unable to resolve slf4j.api/1.7.2: missing requirement [slf4j.api/1.7.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))"]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve wicket/8.1.0: missing requirement [wicket/8.1.0] osgi.identity; osgi.identity=slf4j.api; type=osgi.bundle; version="[1.7.2,1.7.2]"; resolution:=mandatory [caused by: Unable to resolve slf4j.api/1.7.2: missing requirement [slf4j.api/1.7.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))"]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 13 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve slf4j.api/1.7.2: missing requirement [slf4j.api/1.7.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))"
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
... 14 more
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=pax-wicket; type=karaf.feature; version="[5.0.0,5.0.0]"; filter:="(&(osgi.identity=pax-wicket)(type=karaf.feature)(version>=5.0.0)(version<=5.0.0))" [caused by: Unable to resolve pax-wicket/5.0.0: missing requirement [pax-wicket/5.0.0] osgi.identity; osgi.identity=wicket; type=karaf.feature [caused by: Unable to resolve wicket/8.1.0: missing requirement [wicket/8.1.0] osgi.identity; osgi.identity=slf4j.api; type=osgi.bundle; version="[1.7.2,1.7.2]"; resolution:=mandatory [caused by: Unable to resolve slf4j.api/1.7.2: missing requirement [slf4j.api/1.7.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.slf4j.impl)(version>=1.6.0))"]]]

Environment

Karaf 4.2.2
Pax Wicket 5.0.0

OS Linux Ubuntu 18.04
Java OpenJDK 1.8.0_191

Status

Assignee

Unassigned

Reporter

Minto van der Sluis

Labels

None

Components

Affects versions

5.0.0

Priority

Major