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 AEACC18996 for ; Tue, 25 Aug 2015 21:09:59 +0000 (UTC) Received: (qmail 41528 invoked by uid 500); 25 Aug 2015 21:09:59 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 41478 invoked by uid 500); 25 Aug 2015 21:09:59 -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 41463 invoked by uid 99); 25 Aug 2015 21:09:58 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2015 21:09:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 60159182343 for ; Tue, 25 Aug 2015 21:09:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.213 X-Spam-Level: * X-Spam-Status: No, score=1.213 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 94zXaoiF768k for ; Tue, 25 Aug 2015 21:09:47 +0000 (UTC) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id A46112557B for ; Tue, 25 Aug 2015 21:09:46 +0000 (UTC) Received: by laba3 with SMTP id a3so107100507lab.1 for ; Tue, 25 Aug 2015 14:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ZiST9eEWlKfjfSrlLm1RH2jfI6hyMefpil+03nvH/vc=; b=dv7XHTu6rHOw0yJBtRqzG8GNIGAleb9plnqufJXhgs9olFcdLg0shX4+/iFIFOny7Q ldBqc0PnOtFZc0fbZdKHmdW1ps86H7vo3lo8l2v9pyYhggkUAlbF0CqLhJNiYosnkG+F SYDEtZF2BKODQty0hqxBt1PP021JNWKNWp5dhtCDghLbPLTkgF6Rb0ac9644YrEpoYNZ FbOTrKl9WeJAwRTRUjMwERVllSCbPGX7hJ6VPzGdPSLaRel06NEl5ENv0CMRRjD2hACV y9yHM2cOXTRhpmiW9MZO5i/+O8FneYu30m8YS1yDI9UHvnOgfog9PZz+jpiHwQBfn4yW nP6g== MIME-Version: 1.0 X-Received: by 10.112.119.180 with SMTP id kv20mr2004018lbb.81.1440536985109; Tue, 25 Aug 2015 14:09:45 -0700 (PDT) Received: by 10.25.43.131 with HTTP; Tue, 25 Aug 2015 14:09:45 -0700 (PDT) In-Reply-To: <00BCD2BEF4977149A7C7303B4BAEBBE621C8BE48@ORD2MBX01E.mex05.mlsrvr.com> References: <1440428452976-5770943.post@n5.nabble.com> <00BCD2BEF4977149A7C7303B4BAEBBE621C8BE48@ORD2MBX01E.mex05.mlsrvr.com> Date: Tue, 25 Aug 2015 23:09:45 +0200 Message-ID: Subject: Re: NoClassDefFoundError: net/minidev/json/parser/ContainerFactory From: Aki Yoshida To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable that sounds like you have an old camel < 2.15. if you have to set up your app with a specific version of camel, probably you should use the same json-path/json-smart version combination are used by that camel version (i.e., tested). here is a quick way to compare which versions are used in, for example, camel 2.14.3 and 2.15.3 http://vdiff.notsoclever.cc/diff/apache/camel/tags/2.14.3/2.15.3 see the json-path and json-smart in the Changed Packages list. 2015-08-25 21:11 GMT+02:00 shuston : > Ok, I found the source of the dual json-smart versions. My pom.xml listed= : > > > org.apache.camel > camel-jsonpath > ${camel.version} > > > And that was pulling in json-path 0.9.1 which pulled in json-smart 1.2. > Once I removed the above camel-jsonpath dependency the older json-path is= not pulled any longer. That problem is gone. Now I have a context problem = in its place :-( I will research that. > > Thank you for your help, > > -Steve Huston > > > From: Steve Huston > Sent: Tuesday, August 25, 2015 2:43 PM > To: 'Aki Yoshida-3 [via Camel]' > Subject: RE: NoClassDefFoundError: net/minidev/json/parser/ContainerFacto= ry > > Thank you, Aki. I'm following this trail. For now, I've found that someth= ing in my dependencies is pulling in both net.minidev.json-smart 1.2 and 2.= 1.1 - since I don't list json-smart explicitly, I'll need to chase through = the others to find the mismatch. > > From: Aki Yoshida-3 [via Camel] [mailto:ml-node+s465427n5770969h91@n5.nab= ble.com] > Sent: Tuesday, August 25, 2015 8:56 AM > To: Steve Huston > Subject: Re: NoClassDefFoundError: net/minidev/json/parser/ContainerFacto= ry > > you should check your project dependency to see which jayway you have. > you seem to have some old version of jayway that is expecting json-smart-= 1.3.x. > > 2015-08-24 17:00 GMT+02:00 shuston <[hidden email]>: > >> This is for Camel 2.15.3 (also had the problem with 2.15.2) >> >> I am a new Camel user, and trying to use jsonpath. I have in my pom.xml: >> >> >> org.apache.camel >> camel-jsonpath >> ${camel.version} >> >> >> In my XML config, I have: >> >> >> >> >> >> $.header[?(@.name =3D=3D >> "VerifyEmployeeRequest")] >> >> >> >> >> >> >> >> >> I get at runtime (mvn test): >> >> java.lang.NoClassDefFoundError: net/minidev/json/parser/ContainerFactory >> at >> com.jayway.jsonpath.spi.impl.JsonSmartJsonProvider.(JsonSmartJsonP= rovider.java:38) >> at >> com.jayway.jsonpath.spi.impl.JsonSmartJsonProvider.(JsonSmartJsonP= rovider.java:41) >> at >> com.jayway.jsonpath.spi.JsonProviderFactory.(JsonProviderFactory= .java:24) >> at >> com.jayway.jsonpath.Configuration.defaultConfiguration(Configuration.jav= a:62) >> at org.apache.camel.jsonpath.JsonPathEngine.(JsonPathEngin= e.java:41) >> at >> org.apache.camel.jsonpath.JsonPathExpression.(JsonPathExpression.j= ava:33) >> at >> org.apache.camel.jsonpath.JsonPathLanguage.createPredicate(JsonPathLangu= age.java:27) >> ... >> >> I tried adding this to my pom.xml: >> >> net.minidev >> json-smart >> 2.1.1 >> >> >> But that did not help. >> >> Can someone please help steer me in the right direction? >> >> >> >> >> -- >> View this message in context: http://camel.465427.n5.nabble.com/NoClassD= efFoundError-net-minidev-json-parser-ContainerFactory-tp5770943.html >> Sent from the Camel - Users mailing list archive at Nabble.com. > > ________________________________________ > If you reply to this email, your message will be added to the discussion = below: > http://camel.465427.n5.nabble.com/NoClassDefFoundError-net-minidev-json-p= arser-ContainerFactory-tp5770943p5770969.html > To unsubscribe from NoClassDefFoundError: net/minidev/json/parser/Contain= erFactory, click here. > NAML > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/NoClassDe= fFoundError-net-minidev-json-parser-ContainerFactory-tp5770943p5770976.html > Sent from the Camel - Users mailing list archive at Nabble.com.