You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Som Shankar Bhattacharyya <bh...@gmail.com> on 2021/03/04 15:41:21 UTC

Need some help with running the HTTP example in the code base

Hello,

So I am trying to set up a http example on karaf using JaxRS.
While following the instructions I am running into certain issues that I am
not sure how to proceed with.


   1. I am using Karaf version *4.1.3*
   2. I do a *maven clean install* using the code in
   https://github.com/apache/karaf/tree/master/examples/karaf-rest-example
   3. I do a f*eature:repo-add
   mvn:org.apache.karaf.examples/karaf-rest-example-features/LATEST/xml*

*I get this error ,*

Error executing command: Unable to resolve root: missing requirement [root]
osgi.identity; osgi.identity=http; type=karaf.feature;
version="[7.3.13,7.3.13]";
filter:="(&(osgi.identity=http)(type=karaf.feature)(version>=7.3.13)(version<=7.3.13))"
[caused by: Unable to resolve http/7.3.13: missing requirement
[http/7.3.13] osgi.identity; osgi.identity=pax-web-http; type=karaf.feature
[caused by: Unable to resolve pax-web-http/7.3.13: missing requirement
[pax-web-http/7.3.13] osgi.identity;
osgi.identity=org.apache.karaf.http.core; type=osgi.bundle;
version="[4.3.1.SNAPSHOT,4.3.1.SNAPSHOT]"; resolution:=mandatory [caused
by: Unable to resolve org.apache.karaf.http.core/4.3.1.SNAPSHOT: missing
requirement [org.apache.karaf.http.core/4.3.1.SNAPSHOT]
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.cm
)(version>=1.6.0)(!(version>=2.0.0)))"]]]

I am a newbie to Karaf and am having difficulty in understanding this
error. Do I need to install something else ?

Re: Need some help with running the HTTP example in the code base

Posted by Som Shankar Bhattacharyya <bh...@gmail.com>.
thank you very much for the quick response. I will keep you posted.

On Thu, Mar 4, 2021 at 9:24 PM Jean-Baptiste Onofre <jb...@nanthrax.net> wrote:
>
> Just to be clear
>
> 1. Download Karaf 4.2.10
> 2. Then use Karaf 4.2.10 example like this:
>
> feature:repo-add mv:org.apache.karaf.examples/karaf-rest-example-features/4.2.10/xml
> feature:install http
> feature:install karaf-rest-example-scr
>
> Regards
> JB
>
> Le 4 mars 2021 à 16:41, Som Shankar Bhattacharyya <bh...@gmail.com> a écrit :
>
> Hello,
>
> So I am trying to set up a http example on karaf using JaxRS.
> While following the instructions I am running into certain issues that I am not sure how to proceed with.
>
> I am using Karaf version 4.1.3
> I do a maven clean install using the code in https://github.com/apache/karaf/tree/master/examples/karaf-rest-example
> I do a feature:repo-add mvn:org.apache.karaf.examples/karaf-rest-example-features/LATEST/xml
>
> I get this error ,
>
> Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=http; type=karaf.feature; version="[7.3.13,7.3.13]"; filter:="(&(osgi.identity=http)(type=karaf.feature)(version>=7.3.13)(version<=7.3.13))" [caused by: Unable to resolve http/7.3.13: missing requirement [http/7.3.13] osgi.identity; osgi.identity=pax-web-http; type=karaf.feature [caused by: Unable to resolve pax-web-http/7.3.13: missing requirement [pax-web-http/7.3.13] osgi.identity; osgi.identity=org.apache.karaf.http.core; type=osgi.bundle; version="[4.3.1.SNAPSHOT,4.3.1.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.http.core/4.3.1.SNAPSHOT: missing requirement [org.apache.karaf.http.core/4.3.1.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.cm)(version>=1.6.0)(!(version>=2.0.0)))"]]]
>
> I am a newbie to Karaf and am having difficulty in understanding this error. Do I need to install something else ?
>
>

Re: Need some help with running the HTTP example in the code base

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Just to be clear

1. Download Karaf 4.2.10
2. Then use Karaf 4.2.10 example like this:

feature:repo-add mv:org.apache.karaf.examples/karaf-rest-example-features/4.2.10/xml
feature:install http
feature:install karaf-rest-example-scr

Regards
JB

> Le 4 mars 2021 à 16:41, Som Shankar Bhattacharyya <bh...@gmail.com> a écrit :
> 
> Hello,
> 
> So I am trying to set up a http example on karaf using JaxRS.
> While following the instructions I am running into certain issues that I am not sure how to proceed with.
> 
> I am using Karaf version 4.1.3
> I do a maven clean install using the code in https://github.com/apache/karaf/tree/master/examples/karaf-rest-example <https://github.com/apache/karaf/tree/master/examples/karaf-rest-example>
> I do a feature:repo-add mvn:org.apache.karaf.examples/karaf-rest-example-features/LATEST/xml
> I get this error ,
> 
> Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=http; type=karaf.feature; version="[7.3.13,7.3.13]"; filter:="(&(osgi.identity=http)(type=karaf.feature)(version>=7.3.13)(version<=7.3.13))" [caused by: Unable to resolve http/7.3.13: missing requirement [http/7.3.13] osgi.identity; osgi.identity=pax-web-http; type=karaf.feature [caused by: Unable to resolve pax-web-http/7.3.13: missing requirement [pax-web-http/7.3.13] osgi.identity; osgi.identity=org.apache.karaf.http.core; type=osgi.bundle; version="[4.3.1.SNAPSHOT,4.3.1.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve org.apache.karaf.http.core/4.3.1.SNAPSHOT: missing requirement [org.apache.karaf.http.core/4.3.1.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.cm <http://org.osgi.service.cm/>)(version>=1.6.0)(!(version>=2.0.0)))"]]]
> 
> I am a newbie to Karaf and am having difficulty in understanding this error. Do I need to install something else ?
> 


Re: Need some help with running the HTTP example in the code base

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

The LATEST example only run on Karaf 4.3.x.

I suggest to use at least Karaf 4.2.x and use the example corresponding to the Karaf version.

Regards
JB

> Le 4 mars 2021 à 16:41, Som Shankar Bhattacharyya <bh...@gmail.com> a écrit :
> 
>