Hi JB, Thank you for the info. It seems to be the order of doing installs. Let me try to come up with a small generic example and send you the info.
Best, Oleg > On Mar 9, 2021, at 4:55 AM, Jean-Baptiste Onofre <j...@nanthrax.net> wrote: > > Hi Oleg, > > It seems you have the same as > https://issues.apache.org/jira/browse/KARAF-6916 > <https://issues.apache.org/jira/browse/KARAF-6916> > > So, I guess you also have a refresh, right ? > > I never saw such issue, but if you can produce a test case to reproduce it, I > will investigate. > > Thanks, > Regards > JB > >> Le 9 mars 2021 à 10:49, Oleg Cohen <oleg.co...@assurebridge.com >> <mailto:oleg.co...@assurebridge.com>> a écrit : >> >> Greetings, >> >> When installing a feature I am getting the following exception, which seems >> pretty fundamental: >> >> org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: >> missing requirement [root] osgi.identity; osgi.identity=bundle; >> type=karaf.feature; version="[4.3.0,4.3.0]"; >> filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.3.0)(version<=4.3.0))" >> [caused by: Unable to resolve bundle/4.3.0: missing requirement >> [bundle/4.3.0] osgi.identity; osgi.identity=org.apache.karaf.bundle.core; >> type=osgi.bundle; version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: >> Unable to resolve org.apache.karaf.bundle.core/4.3.0: missing requirement >> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; >> filter:="(osgi.wiring.package=javax.management)"]] >> at >> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) >> at >> org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:434) >> at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:421) >> at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375) >> at >> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) >> at >> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:392) >> at >> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1062) >> at >> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) >> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) >> at >> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) >> at >> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) >> at java.base/java.lang.Thread.run(Thread.java:832) >> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to >> resolve bundle/4.3.0: missing requirement [bundle/4.3.0] osgi.identity; >> osgi.identity=org.apache.karaf.bundle.core; type=osgi.bundle; >> version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: Unable to resolve >> org.apache.karaf.bundle.core/4.3.0: missing requirement >> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; >> filter:="(osgi.wiring.package=javax.management)"] >> at >> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) >> ... 12 more >> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to >> resolve org.apache.karaf.bundle.core/4.3.0: missing requirement >> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; >> filter:="(osgi.wiring.package=javax.management)" >> at >> org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) >> ... 13 more >> Error executing command: Unable to resolve root: missing requirement [root] >> osgi.identity; osgi.identity=bundle; type=karaf.feature; >> version="[4.3.0,4.3.0]"; >> filter:="(&(osgi.identity=bundle)(type=karaf.feature)(version>=4.3.0)(version<=4.3.0))" >> [caused by: Unable to resolve bundle/4.3.0: missing requirement >> [bundle/4.3.0] osgi.identity; osgi.identity=org.apache.karaf.bundle.core; >> type=osgi.bundle; version="[4.3.0,4.3.0]"; resolution:=mandatory [caused by: >> Unable to resolve org.apache.karaf.bundle.core/4.3.0: missing requirement >> [org.apache.karaf.bundle.core/4.3.0] osgi.wiring.package; >> filter:="(osgi.wiring.package=javax.management)”]] >> >> >> I did check that the javax.management package is available: >> >> karaf@root()> package:exports | grep javax.management >> javax.management.loading >> | 0.0.0 | 0 | org.apache.felix.framework >> javax.management.modelmbean >> | 0.0.0 | 0 | org.apache.felix.framework >> javax.management.monitor >> | 0.0.0 | 0 | org.apache.felix.framework >> javax.management.openmbean >> | 0.0.0 | 0 | org.apache.felix.framework >> javax.management.relation >> | 0.0.0 | 0 | org.apache.felix.framework >> javax.management.remote.rmi >> | 0.0.0 | 0 | org.apache.felix.framework >> javax.management.remote >> | 0.0.0 | 0 | org.apache.felix.framework >> javax.management.timer >> | 0.0.0 | 0 | org.apache.felix.framework >> javax.management >> | 0.0.0 | 0 | org.apache.felix.framework >> >> I tried running feature:install -r -v -t and still only get the above error. >> >> Thank you! >> Oleg >