Unable to resolve root: missing requirement error on Fuse dependencies
Issue
- When installing a bundle, I receive a similar exception:
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=<MY-BUNDLE>; type=karaf.feature; version="[1.0.0,1.0.0]"; filter:="(&(osgi.identity=<MY-BUNDLE>)(type=karaf.feature)(version>=1.0.0)(version<=1.0.0))" [caused by: Unable to resolve <MY-BUNDLE>/1.0.0: missing requirement [<MY-BUNDLE>/1.0.0] osgi.identity; osgi.identity=<MY-OTHER-BUNDLE>; type=osgi.bundle; version="[1.0.0,1.0.0]"; resolution:=mandatory [caused by: Unable to resolve <MY-OTHER-BUNDLE>/1.0.0: missing requirement [<MY-OTHER-BUNDLE>/1.0.0] osgi.service; effective:=active; filter:="(objectClass=com.redhat.test.MyServiceInterface)"]]
or this:
2021-11-29 11:39:02,158 | ERROR | lueprint Extender: 1 | o.a.a.b.c.BlueprintContainerImpl | 56 - org.apache.aries.blueprint.core - 1.10.3 | Unable to start container for blueprint bundle some-dependent-bundle/1.0.0 due to unresolved dependencies [(objectClass=com.redhat.test.MyServiceInterface)]
java.util.concurrent.TimeoutException: null
at org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:393) [!/:1.10.3]
at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:45) [!/:1.10.3]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_292]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_292]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_292]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_292]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_292]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_292]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Environment
- Red Hat Fuse on Karaf
- 6
- 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.