Thank you, Aki. I'm following this trail. For now, I've found that something 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:[email protected]] Sent: Tuesday, August 25, 2015 8:56 AM To: Steve Huston <[email protected]> Subject: Re: NoClassDefFoundError: net/minidev/json/parser/ContainerFactory 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]</user/SendEmail.jtp?type=node&node=5770969&i=0>>: > 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: > > <dependency> > <groupId>org.apache.camel</groupId> > <artifactId>camel-jsonpath</artifactId> > <version>${camel.version}</version> > </dependency> > > In my XML config, I have: > <route> > <from uri="seda:from_rraa"/> > <process ref="issPreprocessor"/> > <choice> > <when> > <jsonpath>$.header[?(@.name == > "VerifyEmployeeRequest")]</jsonpath> > <unmarshal ref="VerifyEmployeeRequest"/> > </when> > </choice> > > <process ref="crewMock"/> > <to uri="seda:to_rraa"/> > </route> > > I get at runtime (mvn test): > > java.lang.NoClassDefFoundError: net/minidev/json/parser/ContainerFactory > at > com.jayway.jsonpath.spi.impl.JsonSmartJsonProvider.<init>(JsonSmartJsonProvider.java:38) > at > com.jayway.jsonpath.spi.impl.JsonSmartJsonProvider.<init>(JsonSmartJsonProvider.java:41) > at > com.jayway.jsonpath.spi.JsonProviderFactory.<clinit>(JsonProviderFactory.java:24) > at > com.jayway.jsonpath.Configuration.defaultConfiguration(Configuration.java:62) > at > org.apache.camel.jsonpath.JsonPathEngine.<init>(JsonPathEngine.java:41) > at > org.apache.camel.jsonpath.JsonPathExpression.<init>(JsonPathExpression.java:33) > at > org.apache.camel.jsonpath.JsonPathLanguage.createPredicate(JsonPathLanguage.java:27) > ... > > I tried adding this to my pom.xml: > <dependency> > <groupId>net.minidev</groupId> > <artifactId>json-smart</artifactId> > <version>2.1.1</version> > </dependency> > > 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/NoClassDefFoundError-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-parser-ContainerFactory-tp5770943p5770969.html To unsubscribe from NoClassDefFoundError: net/minidev/json/parser/ContainerFactory, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5770943&code=c2h1c3RvbkByaXZlcmFjZS5jb218NTc3MDk0M3wxMzUwMDI4MDE4>. NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-net-minidev-json-parser-ContainerFactory-tp5770943p5770974.html Sent from the Camel - Users mailing list archive at Nabble.com.
