Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A61F18FCB for ; Sat, 27 Feb 2016 15:35:08 +0000 (UTC) Received: (qmail 64360 invoked by uid 500); 27 Feb 2016 15:35:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 64305 invoked by uid 500); 27 Feb 2016 15:35:03 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 64293 invoked by uid 99); 27 Feb 2016 15:35:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Feb 2016 15:35:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 663131A020F for ; Sat, 27 Feb 2016 15:35:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id tXg3RiGap7HF for ; Sat, 27 Feb 2016 15:35:00 +0000 (UTC) Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 1FBF15F3F1 for ; Sat, 27 Feb 2016 15:35:00 +0000 (UTC) Received: by mail-ig0-f180.google.com with SMTP id y8so53531841igp.1 for ; Sat, 27 Feb 2016 07:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=SsLWGl2eKMnTdwPerkYhjurCu4lOAXHu1CYyb9W9mW0=; b=Pca2duTMJkaKyD+9NpvtGVwm8u9oCixA7f4lAouGkXLHcBL7iWL/eCK3yJ1lyhke6R FdGwnBKzWLu1HlE+BS7jk8M77wgSSAgG1AjWV8oUT3W+9bNFYIDa+EVsn7PmFgb46Sxk yC4ZCRPb9GtUnWtjBZymqPIJ16aNFakwJrSaRlv63nTxAPYEZf4Hocr2zokrZw+RVaED O8gL/EmiqvaGLJplns7e6j8HOelocVtjX408qLhZzMvf+S64fl1UiRMPf9kyhk776jkP nJySq/o85oOqn0IbkYa8opsAChp0A1DhDfT7Q1oWsMkWGizL9W5WA+Z3vPkfIOrd0g0d W1TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=SsLWGl2eKMnTdwPerkYhjurCu4lOAXHu1CYyb9W9mW0=; b=YlES4xQB+jlzP+sOE+3gjQ2pjQTtRt/m+XosR/b9rZNNxgTSlw1pIUd+utrzqc7k7B p2sqh1LWqBPW49/w/XFrQll7yYnPQqnVNt/Rn7e7+oX/YPJHOxmhjcbhtVM3HbGXAMg4 dTm/9vEQ4XtE/2L0mGkDp5nJjwVBZZCj4+MmiQZJsrLCnLlCW0yp0CkipzCgSu8abwjD N8SFS8bbokULIfBC/JQ+tu1zsk9wvV6fsQRF8QRSmc5Y6viwaO++XurzKInUu3Vl7FAv aH/j1cXEV0LlN7PInt1/owncXIAHlU98ClPwd570uMqwMi33mOBl28PMq+REpAEOn4Hd BSSg== X-Gm-Message-State: AD7BkJL6b0QwoCjy5Ay8+ApGEih36D0y9hdGmLjQAkDSyUtk/am9GZC6neRfJW8dYFqQ0e/xLegvlHa0bC7ScA== X-Received: by 10.50.150.97 with SMTP id uh1mr2835687igb.39.1456587299066; Sat, 27 Feb 2016 07:34:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.0.211 with HTTP; Sat, 27 Feb 2016 07:34:39 -0800 (PST) In-Reply-To: References: From: Claus Ibsen Date: Sat, 27 Feb 2016 16:34:39 +0100 Message-ID: Subject: Re: Why can't I use swagger java with spark rest? To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 I changed the camel-example-swagger-cdi to use undertow, so we use different ones in our example. It works fine. You can play with this example and use the other components. Mind some are only available in Camel 2.17. On Sat, Feb 27, 2016 at 2:46 PM, John D. Ament wrote: > 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 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 >> 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 >> 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 >> -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2