tadayosi opened a new issue #862: camel-rest should load automatically for 
routes using Rest DSL 
URL: https://github.com/apache/camel-k/issues/862
 
 
   Currently `examples/RestWithRestlet.java` fails unless 
`--dependency=camel-rest` is explicitly set:
   ```
   $ kamel run --name=rest-with-restlet --dependency=camel-restlet 
examples/RestWithRestlet.java --dev
   ...
   [1] Exception in thread "main" 
org.apache.camel.FailedToCreateRouteException: Failed to create route route2: 
Route(route2)[From[rest://get:/hello?consumerComponentName=r... because of 
Failed to resolve endpoint: 
rest://get:/hello?consumerComponentName=restlet&routeId=route2 due to: No 
component found with scheme: rest
   [1]  at 
org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:100)
   [1]  at org.apache.camel.impl.DefaultModel.start(DefaultModel.java:346)
   [1]  at org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:320)
   [1]  at 
org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:313)
   [1]  at 
org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:292)
   [1]  at 
org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinitions(AbstractModelCamelContext.java:330)
   [1]  at 
org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2555)
   [1]  at 
org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2387)
   [1]  at 
org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2404)
   [1]  at 
org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2385)
   [1]  at 
org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:97)
   [1]  at 
org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2296)
   [1]  at org.apache.camel.main.Main.doStart(Main.java:117)
   [1]  at 
org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:97)
   [1]  at org.apache.camel.main.MainSupport.run(MainSupport.java:196)
   [1]  at 
org.apache.camel.k.main.ApplicationRuntime.run(ApplicationRuntime.java:70)
   [1]  at org.apache.camel.k.main.Application.main(Application.java:44)
   [1] Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to 
resolve endpoint: 
rest://get:/hello?consumerComponentName=restlet&routeId=route2 due to: No 
component found with scheme: rest
   [1]  at 
org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:779)
   [1]  at 
org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:55)
   [1]  at 
org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
   [1]  at 
org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:334)
   [1]  at 
org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:95)
   [1]  ... 16 more
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to