You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Richard Hierlmeier <rh...@googlemail.com> on 2021/05/25 14:10:11 UTC
Missing requirement when using Osgi R7 Http whiteboard annotations
I tried to deploy an OSGI bundle that uses R7 Http whiteboard annotations.
However when I deploy this bundle on Karaf 4.3.1 I get the following error:
missing requirement [SampleR7/1.0.0.SNAPSHOT] osgi.wiring.package;
resolution:=required;
filter:="(&(osgi.wiring.package=org.osgi.service.http.context)(version>=1.1.0)(!(version>=2.0.0)))"]]
-> [Help 1]
What are the prerequisits für the new annotations?
Regards
Richard
Re: Missing requirement when using Osgi R7 Http whiteboard annotations
Posted by Steinar Bang <sb...@dod.no>.
>>>>> Richard Hierlmeier <rh...@googlemail.com>:
> I tried to deploy an OSGI bundle that uses R7 Http whiteboard annotations.
> However when I deploy this bundle on Karaf 4.3.1 I get the following error:
> missing requirement [SampleR7/1.0.0.SNAPSHOT] osgi.wiring.package;
> resolution:=required;
> filter:="(&(osgi.wiring.package=org.osgi.service.http.context)(version>=1.1.0)(!(version>=2.0.0)))"]]
-> [Help 1]
> What are the prerequisits für the new annotations?
My workaround, as suggested by JB, was to set the lower version bound of
the org.osgi.service.http.context import to 1.0, in the
maven-bundle-config:
https://github.com/steinarb/ukelonn/blob/master/ukelonn.web.security/pom.xml#L184
Re: Missing requirement when using Osgi R7 Http whiteboard annotations
Posted by Steinar Bang <sb...@dod.no>.
>>>>> Jean-Baptiste Onofre <jb...@nanthrax.net>:
> Funny, it has been discussed last week.
:-)
> The problem is just about the org.osgi.service.http.context version exported by Pax Web.
> Pax Web 7.3.x still exports org.osgi.service.http.context in version 1.0. This is a bug as version 1.1.0 should be exported by Pax Web.
> This will be fixed in Pax Web 7.3.17 and so Karaf 4.3.3.
+1
Re: Missing requirement when using Osgi R7 Http whiteboard
annotations
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Richard,
Funny, it has been discussed last week.
The problem is just about the org.osgi.service.http.context version exported by Pax Web.
Pax Web 7.3.x still exports org.osgi.service.http.context in version 1.0. This is a bug as version 1.1.0 should be exported by Pax Web.
This will be fixed in Pax Web 7.3.17 and so Karaf 4.3.3.
Regards
JB
> Le 25 mai 2021 à 16:10, Richard Hierlmeier <rh...@googlemail.com> a écrit :
>
>
> I tried to deploy an OSGI bundle that uses R7 Http whiteboard annotations.
> However when I deploy this bundle on Karaf 4.3.1 I get the following error:
>
> missing requirement [SampleR7/1.0.0.SNAPSHOT] osgi.wiring.package; resolution:=required; filter:="(&(osgi.wiring.package=org.osgi.service.http.context)(version>=1.1.0)(!(version>=2.0.0)))"]] -> [Help 1]
>
> What are the prerequisits für the new annotations?
>
> Regards
>
> Richard
>
>
>
>
>