Karaf is not finding org.osgi.util.function and fails to start

2021-05-06 Thread Alex Soto
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.featu

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-06 Thread Jean-Baptiste Onofre
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 That’s for Karaf 4.3.1/4.3.2.

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-06 Thread Alex Soto
Thanks, JB, but I don’t understand. When I inspect my /etc/org.apache.karaf.features.cfg file: # # Comma separated list of features repositories to register by default # featuresRepositories = \ mvn:org.apache.karaf.features/standard/4.3.0/xml/features, \ mvn:org.apache.karaf.features

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-06 Thread Alex Soto
I see… Karaf is looking for wrap version 2.6.7, but the version the framework feature brings is version is 2.6.2, so it does not find it. However, I don’t know who is pulling version 2.6.7. Will search for that... Best regards, Alex soto > On May 6, 2021, at 10:15 AM, Alex Soto wrote:

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-06 Thread Jean-Baptiste Onofre
Hi Alex, Yes, the version is not correct. I would check your feature / pom.xml, maybe you don’t have version defined, so it takes the latest one. Regards JB > Le 6 mai 2021 à 18:56, Alex Soto a écrit : > > > I see… > > Karaf is looking for wrap version 2.6.7, but the version the framewor

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-18 Thread Alex Soto
Hi JB, I wonder how to tie the versions, apparently something changed in the resolver, where it is now picking up the latest released version of various artifacts, originally it was for wrap but I am now seeing it for others. Funny thing is, it was working before, but after version 4.3.2 was r

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-18 Thread JB Onofré
Hi Alex The resolver always take the latest release candidates. It was always like this. If you use open version range it will take the latest one. For instance, as reminder, foo/bar/1.0 doesn’t mean only 1.0 but actually [1.0,), so it will take the latest version. It’s also the case for the

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-18 Thread Alex Soto
I viewed the Framework feature I am explicitly referencing in my POM here: https://repo1.maven.org/maven2/org/apache/karaf/features/framework/4.3.1/framework-4.3.1-features.xml And it clearly

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-18 Thread Alex Soto
Thanks, JB: Can you illustrate how to do this? POMs don’t support version ranges, AFIK, and, as I wrote in another post, the missing feature is referenced by the Framework features.xml: https://repo1.maven.org/maven2/org/apache/karaf/features/framework/4.3.1/framework-4.3.1-features.xml

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-18 Thread Alex Soto
Inline comments... > On May 18, 2021, at 12:28 PM, JB Onofré wrote: > > Hi Alex > > The resolver always take the latest release candidates. It was always like > this. If you use open version range it will take the latest one. > > For instance, as reminder, foo/bar/1.0 doesn’t mean only 1.0

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-18 Thread JB Onofré
Oh sorry I mean at runtime you talk about build time. Can you share your Pom xml ? > Le 18 mai 2021 à 21:23, Alex Soto a écrit : > > Inline comments... > > >>> On May 18, 2021, at 12:28 PM, JB Onofré wrote: >>> >>> Hi Alex >>> >>> The resolver always take the latest release candidates. It

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-18 Thread Alex Soto
Well, build time it builds OK, except it is pulling a mix of both 4.3.2 and 4.3.1: [INFO] --- karaf-maven-plugin:4.3.1:assembly (default-assembly) @ qflex-hsm-dist --- [INFO] Using repositories: [INFO]https://repo.maven.apache.org/maven2@id=central [INFO] Creating work directory: /home/vagra

Re: Karaf is not finding org.osgi.util.function and fails to start

2021-05-20 Thread Jean-Baptiste Onofre
Cool, thanks ! Regards JB > Le 21 mai 2021 à 06:58, francois.papon a écrit > : > > ARIES-2047