You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dermoritz <ta...@hotmail.com> on 2015/10/28 18:31:39 UTC

trying to use Rest with restlet component still getting "Cannot find RestConsumerFactory in Registry"

I am trying to get a simple rest service to work:


restConfiguration().component("restlet");
from(rest:get:hello).process(answer)

I added 

<dependency>
	<groupId>org.apache.camel</groupId>
	<artifactId>camel-restlet</artifactId>
	<version>2.16.0</version>
</dependency>"

to my pom. But i still get
"java.lang.IllegalStateException: Cannot find RestConsumerFactory in
Registry or as a Component to use"

So what could possibly went wrong here?





--
View this message in context: http://camel.465427.n5.nabble.com/trying-to-use-Rest-with-restlet-component-still-getting-Cannot-find-RestConsumerFactory-in-Registry-tp5773162.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: trying to use Rest with restlet component still getting "Cannot find RestConsumerFactory in Registry"

Posted by dermoritz <ta...@hotmail.com>.
i am using camels main.run()



--
View this message in context: http://camel.465427.n5.nabble.com/trying-to-use-Rest-with-restlet-component-still-getting-Cannot-find-RestConsumerFactory-in-Registry-tp5773162p5773195.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: trying to use Rest with restlet component still getting "Cannot find RestConsumerFactory in Registry"

Posted by Claus Ibsen <cl...@gmail.com>.
Can you tell how you run Camel as that can affect if components can be
discovered.

On Wed, Oct 28, 2015 at 6:31 PM, dermoritz <ta...@hotmail.com> wrote:
> I am trying to get a simple rest service to work:
>
>
> restConfiguration().component("restlet");
> from(rest:get:hello).process(answer)
>
> I added
>
> <dependency>
>         <groupId>org.apache.camel</groupId>
>         <artifactId>camel-restlet</artifactId>
>         <version>2.16.0</version>
> </dependency>"
>
> to my pom. But i still get
> "java.lang.IllegalStateException: Cannot find RestConsumerFactory in
> Registry or as a Component to use"
>
> So what could possibly went wrong here?
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/trying-to-use-Rest-with-restlet-component-still-getting-Cannot-find-RestConsumerFactory-in-Registry-tp5773162.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition