6 Replies Latest reply on Sep 18, 2013 4:29 AM by Freeman(Yue) Fang

    Cannot auto create component: restlet

    Kishor Pawar Newbie

      Hi,

       

      I am trying to implement camel route something like below in JBoss Fuse redhat 6.0.

       

      <route id="mockLogin">

                  <from uri="restlet:http://localhost:9080/logon?restletMethod=get" />

                  <process ref="mockLoginService" />

      </route>

       

      I get the below exception when i try to deploy it. I have installed camel-restlet (2.10.0.redhat-60024) feature.

       

      org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route mockLogin: Route[[From[restlet:http://localhost:9080/logon?restletMetho... because of Failed to resolve endpoint: restlet://http://localhost:9080/logon?restletMethod=get due to: Cannot auto create component: restlet

          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)


      Pls. help. Thanks in advance.