1 Reply Latest reply on Jan 16, 2014 4:28 AM by Claus Ibsen

    No component found with scheme: http

    Kiran Kumar Newbie

      I am deploying a camel route on fuse esb. The came route makes a call to a http servlet(see below).

       

      from("direct:start").to("http://xxxxxxxxxx/abc/def")

          .log(LoggingLevel.INFO, "Received Response from Servlet: ${body}.");

       

      During the bundle deploy I am getting below error, Initially the camel-http bundle was not deployed so I deployed the bundle by running the command(see the bundle list below) : features:install camel-http

       

      Please let me know what am I missing.

       

      2014-01-13 18:41:44,146 | ERROR | Executor: 3      | ContextLoader                    | ?                                   ? | 114 - .......

      org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route5 at: >>> To[http://xxxxxxxxxx/abc/def]

      <<< in route: Route[[From[direct:start]] -> [To[http://xxxxxxxxxx/abc/... because of Failed to resolve endpoint: http://xxxxxxxxxx/abc/def due to: No component found with scheme: http

              at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1326)[]

              at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)]

              at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:283)[

      ........

      Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route5 at: >>> To[http://xxxxxxxxxx/abc/def] <<< in route: Route[[From[dir

      ect:start]] -> [To[http://xxxxxxxxxx/abc/... because of Failed to resolve endpoint: http://xxxxxxxxxx/abc/def due to: No component found with scheme: h

      ttp

             ..............

       

       

      Bundle List:

      [ 100] [Active     ] [            ] [   30] OPS4J Pax Url - war (1.3.6)

      [ 101] [Active     ] [Created     ] [   30] Apache Karaf :: Management :: MBeans :: Web (2.3.0.redhat-60024)

      [ 102] [Active     ] [            ] [   30] Spring Context Support (3.1.3.RELEASE)

      [ 103] [Active     ] [            ] [   30] Spring Beans (3.1.3.RELEASE)

      [ 104] [Active     ] [            ] [   30] Spring Context (3.1.3.RELEASE)

      [ 105] [Active     ] [            ] [   30] Spring AOP (3.1.3.RELEASE)

      [ 106] [Active     ] [            ] [   30] Spring ASM (3.1.3.RELEASE)

      [ 107] [Active     ] [            ] [   30] Spring Core (3.1.3.RELEASE)

      [ 108] [Active     ] [            ] [   30] Spring Expression Language (3.1.3.RELEASE)

      [ 109] [Active     ] [            ] [   30] Apache ServiceMix :: Bundles :: aopalliance (1.0.0.6)

      [ 110] [Active     ] [Created     ] [   50] camel-karaf-commands (2.10.0.redhat-60024)

      [ 111] [Active     ] [            ] [   50] camel-core (2.10.0.redhat-60024)

      [ 112] [Active     ] [            ] [   50] camel-http (2.10.0.redhat-60024)

      [ 113] [Active     ] [            ] [   50] Apache ServiceMix :: Bundles :: commons-httpclient (3.1.0.7)

       

       

      Thanks

        • 1. Re: No component found with scheme: http
          Claus Ibsen Master

          Can you try restarting your bundle with the Camel route? As you installed the camel-http afterwards.

          Also you can try restarting the ESB but shutting it down and starting it again.

           

          Are you using Spring or Blueprint or how do you start your Camel application? Eg there is some java code for the Camel route. But how do you start that?

          If you use spring or blueprint then Camel ought to detect that it needs the http component and wait for it to be available in the ESB. When this happens the bundle will usually be in waiting/grade mode.