Its probably worth also listing out which components support swagger here:
http://camel.apache.org/rest-dsl.html

Some observations I had:

- Undertow doesn't throw the error, but the swagger.json file isn't
available.
- Jetty throws this exception as well
- Restlet gives a NoClassDefFoundError, but I suspect its a bad dependency
in the chain somewhere.

I haven't tried servlet yet, since I'm targeting a containerless deployment
(wasn't sure if it worked with Tomcat embedded).

John

On Sat, Feb 27, 2016 at 7:50 AM Claus Ibsen <claus.ib...@gmail.com> wrote:

> Hi
>
> I have logged a ticket and work on implement this.
> https://issues.apache.org/jira/browse/CAMEL-9652
>
> On Sat, Feb 27, 2016 at 7:27 AM, Claus Ibsen <claus.ib...@gmail.com>
> wrote:
> > Hi
> >
> > I dont think we have implemented it for it, you are welcome to log a JIRA
> > http://camel.apache.org/support.html
> >
> > On Sat, Feb 27, 2016 at 2:12 AM, John D. Ament <johndam...@apache.org>
> wrote:
> >> 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
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > http://davsclaus.com @davsclaus
> > Camel in Action 2: https://www.manning.com/ibsen2
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Reply via email to