Hi, osgi.function is part of the framework feature:
https://github.com/apache/karaf/blob/main/assemblies/features/framework/src/main/feature/feature.xml#L34 <https://github.com/apache/karaf/blob/main/assemblies/features/framework/src/main/feature/feature.xml#L34> That’s for Karaf 4.3.1/4.3.2. For 4.3.0, it’s there but in version 1.0.0: https://repo1.maven.org/maven2/org/apache/karaf/features/framework/4.3.0/framework-4.3.0-features.xml <https://repo1.maven.org/maven2/org/apache/karaf/features/framework/4.3.0/framework-4.3.0-features.xml> Regards JB > Le 6 mai 2021 à 17:36, Alex Soto <[email protected]> a écrit : > > Hello, > > Using a custom distribution, based on Karaf version 4.3.0, I am getting the > following error, and Karaf would not start: > > > $ bin/karaf > org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: > missing requirement [root] osgi.identity; osgi.identity=wrap; > type=karaf.feature; version="[2.6.7,2.6.7]"; > filter:="(&(osgi.identity=wrap)(type=karaf.feature)(version>=2.6.7)(version<=2.6.7))" > [caused by: Unable to resolve wrap/2.6.7: missing requirement [wrap/2.6.7] > osgi.identity; osgi.identity=pax-url-wrap; type=karaf.feature; > version="[2.6.7,2.6.7]" [caused by: Unable to resolve pax-url-wrap/2.6.7: > missing requirement [pax-url-wrap/2.6.7] osgi.identity; > osgi.identity=org.ops4j.pax.url.wrap; type=osgi.bundle; > version="[2.6.7,2.6.7]"; resolution:=mandatory [caused by: Unable to resolve > org.ops4j.pax.url.wrap/2.6.7: missing requirement > [org.ops4j.pax.url.wrap/2.6.7] osgi.wiring.package; > filter:="(&(osgi.wiring.package=org.osgi.util.function)(version>=1.1.0)(!(version>=2.0.0)))"]]] > 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:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:829) > Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to > resolve wrap/2.6.7: missing requirement [wrap/2.6.7] osgi.identity; > osgi.identity=pax-url-wrap; type=karaf.feature; version="[2.6.7,2.6.7]" > [caused by: Unable to resolve pax-url-wrap/2.6.7: missing requirement > [pax-url-wrap/2.6.7] osgi.identity; osgi.identity=org.ops4j.pax.url.wrap; > type=osgi.bundle; version="[2.6.7,2.6.7]"; resolution:=mandatory [caused by: > Unable to resolve org.ops4j.pax.url.wrap/2.6.7: missing requirement > [org.ops4j.pax.url.wrap/2.6.7] osgi.wiring.package; > filter:="(&(osgi.wiring.package=org.osgi.util.function)(version>=1.1.0)(!(version>=2.0.0)))"]] > at > org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) > ... 12 more > Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to > resolve pax-url-wrap/2.6.7: missing requirement [pax-url-wrap/2.6.7] > osgi.identity; osgi.identity=org.ops4j.pax.url.wrap; type=osgi.bundle; > version="[2.6.7,2.6.7]"; resolution:=mandatory [caused by: Unable to resolve > org.ops4j.pax.url.wrap/2.6.7: missing requirement > [org.ops4j.pax.url.wrap/2.6.7] osgi.wiring.package; > filter:="(&(osgi.wiring.package=org.osgi.util.function)(version>=1.1.0)(!(version>=2.0.0)))"] > at > org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) > ... 13 more > Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to > resolve org.ops4j.pax.url.wrap/2.6.7: missing requirement > [org.ops4j.pax.url.wrap/2.6.7] osgi.wiring.package; > filter:="(&(osgi.wiring.package=org.osgi.util.function)(version>=1.1.0)(!(version>=2.0.0)))" > at > org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) > ... 14 more > > > > Java version is: openjdk version "11.0.11" 2021-04-20 LTS > OS: Linux version 3.10.0-1127.el7.x86_64 ([email protected] > <mailto:[email protected]>) (gcc version 4.8.5 20150623 (Red > Hat 4.8.5-39) (GCC) ) #1 SMP Tue Mar 31 23:36:51 UTC 2020 > > > I have verified the required jar is present: > > $ ls -l system/org/osgi/org.osgi.util.function/1.1.0/ > total 16 > -rw-r--r--. 1 vagrant vagrant 14053 May 6 14:49 > org.osgi.util.function-1.1.0.jar > > > Any help will be appreciated. > > Best regards, > Alex soto > > > >
