No component found with scheme http error in apache camel

Azhaguvel A picture Azhaguvel A · Mar 8, 2014 · Viewed 27.8k times · Source

I have written sample code for calling rest api using apache camel. Which is working correctly in standalone but the same code I have used to create OSGI bundle and deploy it into the karaf container that the bundle is created sucessfully but i am getting the error such as "No component found with scheme http" when i try to call it.

Can you help me to resolve this issue?

Answer

Peter Keller picture Peter Keller · Mar 8, 2014

Add following snipplet to your pom.xml:

<dependency>
     <groupId>org.apache.camel</groupId>
     <artifactId>camel-http</artifactId>
     <version>x.x.x</version>
     <!-- use the same version as your Camel core version -->
 </dependency>

If you use Camel in a OSGI/Karaf/ServiceMix/JBoss FUSE ESB Environment you have to add the bundle via Karaf console with

features:install camel-http

Find more information about installing camel for Karaf, have a look at http://camel.apache.org/karaf