New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposing Rest endpoint #212
Comments
Can you post the full route ? |
I think there could be a missing Could Camel-K be aware of this and add additional component to classpath? |
yes camel-k can do that :) we need to check the route to see if there are missing cases. |
Hi @lburgazzoli, Thank you for the quick response. import org.apache.camel.LoggingLevel; public class RestTest extends RouteBuilder { |
will have a look, in the meantime you can try to add the restlet dependency like:
|
Yeah, I think current metadata discovery works with explicit uris (e.g. "undertow:http..."), we should make it more intelligent.. |
@lburgazzoli - Sorry for the confusion. Still the exception exists after trying with the restlet dependency |
sorry my mistake:
|
Hi @lburgazzoli - Another small question, After I deploy the DSL, I noticed that ingress does not create. Have you noticed an issue like that? |
We're about to release v 0.0.5 that contains the generator for ingress. |
@nicolaferraro I think we can close this one, right ? |
Yes |
Description:
I tried to create a rest endpoint using camel-k however when DSL is deployed I got following error.
Should Camel-k download dependent components?
[2] Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[[From[rest:get:/hello?routeId=route1]] -> [To[... because of Cannot find RestConsumerFactory in Registry or as a Component to use
[2] at org.apache.camel.impl.RouteService.warmUp(RouteService.java:147)
[2] at org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3949)
[2] at org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3856)
[2] at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3642)
[2] at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3494)
[2] at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:209)
[2] at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3253)
[2] at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3249)
[2] at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3272)
[2] at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3249)
[2] at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
[2] at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3165)
[2] at org.apache.camel.k.jvm.Runtime.doStart(Runtime.java:101)
[2] at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
[2] at org.apache.camel.main.MainSupport.run(MainSupport.java:170)
[2] at org.apache.camel.k.jvm.Application.main(Application.java:65)
[2] Caused by: java.lang.IllegalStateException: Cannot find RestConsumerFactory in Registry or as a Component to use
[2] at org.apache.camel.component.rest.RestEndpoint.createConsumer(RestEndpoint.java:526)
[2] at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:69)
[2] at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:107)
[2] at org.apache.camel.impl.RouteService.doWarmUp(RouteService.java:172)
[2] at org.apache.camel.impl.RouteService.warmUp(RouteService.java:145)
The text was updated successfully, but these errors were encountered: