How do I add camel-http4 to a Karaf features.xml file? -


if add

<bundle>mvn:org.apache.camel/camel-http4/2.15.1</bundle> 

then following error below.

what right way able use camel-http4 within blueprint camel routing within karaf? how should modify features.xml?

org.osgi.service.resolver.resolutionexception: unable resolve root: missing requirement [root] osgi.identity; osgi.identity=social_importer.kar; type=karaf.feature; version="[1.0.0.snapshot,1.0.0.snapshot]"; filter:="(&(osgi.identity=social_importer.kar)(type=karaf.feature)(version>=1.0.0.snapshot)(version<=1.0.0.snapshot))" [caused by: unable resolve social_importer.kar/1.0.0.snapshot: missing requirement [social_importer.kar/1.0.0.snapshot] osgi.identity; osgi.identity=org.apache.camel.camel-http4; type=osgi.bundle; version="[2.15.1,2.15.1]"; resolution:=mandatory [caused by: unable resolve org.apache.camel.camel-http4/2.15.1: missing requirement [org.apache.camel.camel-http4/2.15.1] osgi.wiring.package; filter:="(&(osgi.wiring.package=javax.servlet)(version>=2.5.0)(!(version>=4.0.0)))"]]


thanks, far have discovered following helps, still investigating.

karaf@root()> feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.15.2/xml/features adding feature url mvn:org.apache.camel.karaf/apache-camel/2.15.2/xml/features karaf@root()> feature:install camel-http4 karaf@root()> feature:install camel-http karaf@root()> feature:install camel-ahc 

you can install camel components karaf shell using

features:install camel-http4

that install bundles of feature needed using camel-http4. , after doing once, can install own bundles.

if have own features.xml file, can refer other features with

<feature>camel-http4</feature> 

and may need in top of features.xml file refer camel features, such camel others here: https://github.com/apache/camel/blob/master/platforms/karaf/features/src/main/resources/features.xml#l20


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -