camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <johndam...@apache.org>
Subject Why can't I use swagger java with spark rest?
Date Sat, 27 Feb 2016 01:12:09 GMT
I'm really interested in using Camel's REST DSL and Swagger to provide
documentation on my API routes.  I was hoping to use spark as well, but I
can't seem to get it to run.  I receive this error

java.lang.IllegalArgumentException: Component spark-rest is not a
RestApiConsumerFactory
at
org.apache.camel.component.rest.RestApiEndpoint.createConsumer(RestApiEndpoint.java:223)
at
org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:68)
at
org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:98)
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:158)
at
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:3453)
at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:3383)
at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:3160)
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3016)
at
org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:175)
at
org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2812)
at
org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2808)
at
org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2831)
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2808)
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)

My thought is that this implies that there's something not supported
between the two.  Is that accurate?

John

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message