[
https://issues.apache.org/jira/browse/KARAF-4161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15041253#comment-15041253
]
David Leangen commented on KARAF-4161:
--------------------------------------
I tried stepping through the code, but could not find the source of the
problem. Here is the error that was thrown, but I don't think it's very helpful:
{code}
2015-12-04 17:11:57,773 | ERROR | nsole user karaf | ShellUtil
| 75 - org.apache.karaf.shell.core - 4.0.4.SNAPSHOT | Exception caught
while executing command
org.apache.karaf.features.internal.util.MultiException: Error restarting bundles
at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:844)[9:org.apache.karaf.features.core:4.0.4.SNAPSHOT]
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1085)[9:org.apache.karaf.features.core:4.0.4.SNAPSHOT]
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:981)[9:org.apache.karaf.features.core:4.0.4.SNAPSHOT]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
Caused by: org.osgi.framework.BundleException: Unable to resolve [EDITED]
[124](R 124.0): missing requirement [EDITED]
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)[org.apache.felix.framework-5.4.0.jar:]
at
org.apache.felix.framework.Felix.startBundle(Felix.java:2117)[org.apache.felix.framework-5.4.0.jar:]
at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)[org.apache.felix.framework-5.4.0.jar:]
at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)[org.apache.felix.framework-5.4.0.jar:]
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1195)[9:org.apache.karaf.features.core:4.0.4.SNAPSHOT]
at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:836)[9:org.apache.karaf.features.core:4.0.4.SNAPSHOT]
... 6 more
{code}
Supposing that C depends on A and B, when I manually add A and B, then C gets
installed and is activated. However, when I add C, expecting that A and B will
get resolved, I get the above error.
> Adding requirement does not resolve required bundles
> ----------------------------------------------------
>
> Key: KARAF-4161
> URL: https://issues.apache.org/jira/browse/KARAF-4161
> Project: Karaf
> Issue Type: Bug
> Components: karaf-feature
> Reporter: David Leangen
> Assignee: Guillaume Nodet
>
> When using
> {code}
> feature:requirement-add
> ‘requirement:osgi.identity;osgi.identity=my.bundle;type=osgi.bundle'
> {code}
> required bundles are not getting resolved, even if they exist in an installed
> repository. This seems to occur when the required bundle is available from a
> different repository.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)