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 41E251005F for ; Fri, 17 Apr 2015 07:26:13 +0000 (UTC) Received: (qmail 85585 invoked by uid 500); 17 Apr 2015 07:11:50 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 71156 invoked by uid 500); 17 Apr 2015 07:11:41 -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 50819 invoked by uid 99); 17 Apr 2015 04:41:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 04:41:39 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 04:41:35 +0000 Received: by oblw8 with SMTP id w8so60943240obl.0 for ; Thu, 16 Apr 2015 21:41:15 -0700 (PDT) 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 :content-type:content-transfer-encoding; bh=SUaWY485dRNCSL9TIUwC8EOfiFlMGJl+06kYviFLfXo=; b=uOP/fJfmZDoza0dKGc09NWaY7T1ExSOz87YULvy8JcUxzBJqI47b4NkPo3PySrhARp 0vREOw/Knl7dSgQKLk7MUa7o0xdxkXX6YjbZqA4QUpkh5kdXvZBFlLEzu6h2x8thtPnu dt/Seo/0sq2LWrXOeKAWpR33ur6vwx3yVWVl2Vw4XWTH8HroqGIV9P6xcoNK6mMEGByM SLMBTNnA5q7lo5/O4P9vRVmb8QiXvkqQTZmI5I2o802CZhhKdqmm+rldzGSKyTkSbJoS 1OoV7+o+XGYuABQWzJrSQLCiBYvhoLz96vggpYjX9mBn1svQgd0Qg9Qh/cNfGYhWAT0r kSoQ== X-Received: by 10.107.162.147 with SMTP id l141mr1397763ioe.77.1429245675514; Thu, 16 Apr 2015 21:41:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.149.2 with HTTP; Thu, 16 Apr 2015 21:40:55 -0700 (PDT) In-Reply-To: References: <1429113013173-5765829.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 17 Apr 2015 06:40:55 +0200 Message-ID: Subject: Re: The Camel Kafka component crashes with a NoClassDefFoundError exception. To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Thanks guys yeah that is a valid reason. I think we should add to camel-kafka that the user should add the scala libraries version they use/need. On Fri, Apr 17, 2015 at 5:07 AM, Willem Jiang wrot= e: > As the Scala lib has some backward compatible issue, so we cannot apply t= he scala version we use in camel to the Camel kafka. I think it=E2=80=99s u= p to the user to choice the right version of Scala there. > > -- > Willem Jiang > > Red Hat, Inc. > Web: http://www.redhat.com > Blog: http://willemjiang.blogspot.com (English) > http://jnn.iteye.com (Chinese) > Twitter: willemjiang > Weibo: =E5=A7=9C=E5=AE=81willem > > > > On April 17, 2015 at 4:41:37 AM, Henryk Konsek (hekonsek@gmail.com) wrote= : >> If we are talking about camel-scala, then I believe that scala dependenc= y >> should be provided. We integrate Camel with Scala, but it is up to end-u= ser >> to provide the version of Scala s(he) wants to use in the project. >> >> Laters! >> >> czw., 16 kwi 2015 o 19:10 u=C5=BCytkownik Claus Ibsen >> napisa=C5=82: >> >> > Hi >> > >> > Yeah I am not sure why the scala dependency was set to scope=3Dprovide= d. >> > Maybe git blame can tell. >> > >> > But sure you are welcome to log a ticket and provide a patch / PR >> > http://camel.apache.org/support >> > >> > On Wed, Apr 15, 2015 at 5:50 PM, ccampo wrote: >> > > The Camel Kafka component crashes with a NoClassDefFoundError except= ion. >> > > >> > > If you define a Camel route which uses the Camel Kafka component, it= will >> > > crash when running with a NoClassDefFoundError. I've tracked this do= wn to >> > > the project that uses camel-kafka 2.15.1 also requires an explicit >> > > dependency on scala-library 2.10.2. This dependency is not mentioned >> > > anywhere in the documentation. Here's the error that occurs when the >> > Scala >> > > dependency is missing: >> > > >> > > >> > > >> > > Here's the route I'm using: >> > > >> > > >> > > >> > > My project is using Spring Boot 1.2.3 and Camel 2.15.1. >> > > >> > > Would you like me to open a JIRA ticket for this to be resolved? >> > > >> > > >> > > >> > > -- >> > > View this message in context: >> > http://camel.465427.n5.nabble.com/The-Camel-Kafka-component-crashes-wi= th-a-NoClassDefFoundError-exception-tp5765829.html >> > > Sent from the Camel - Users mailing list archive at Nabble.com. >> > >> > >> > >> > -- >> > Claus Ibsen >> > ----------------- >> > Red Hat, Inc. >> > Email: cibsen@redhat.com >> > Twitter: davsclaus >> > Blog: http://davsclaus.com >> > Author of Camel in Action: http://www.manning.com/ibsen >> > hawtio: http://hawt.io/ >> > fabric8 : http://fabric8.io/ >> > >> > --=20 Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/