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 > <bhattacharyya...@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 ? >