Hi Vinny, Presuming the OP is using Maven (which I am), isn't this a bug in the "Google Client API" maven project? If that project requires Jackson to work, then it should indicate Jackson as a dependency. In that case, any of us depending on "Google Client API" should be enough, and it will transitively register a dependency on Jackson. It will do this IMPLICITLY, without any of us needing to explicitly indicate that dependency. As we don't actually depend on Jackson directly, it would be bad design for us to explicitly list it due to knowledge of internal implementation of "Google Client API."
I am having this error too, but I depend on some older versions of GAE SDK. I will update those first to see if it resolves itself, otherwise I'll use your approach and just force-depend on Jackson (despite having no direct dependency). Thanks, -b (details: I currently use version 1.9.21 in my GAE maven dependencies) On Thursday, February 13, 2014 at 6:38:09 PM UTC-8, Vinny P wrote: > > On Thu, Feb 13, 2014 at 5:26 AM, <[email protected] <javascript:>> wrote: > >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/codehaus/jackson/JsonFactory >> at >> com.google.api.client.json.jackson.JacksonFactory.<init>(JacksonFactory.java:38) >> at com.sial.DirectorySamples.<clinit>(DirectorySamples.java:21) >> Caused by: java.lang.ClassNotFoundException: >> org.codehaus.jackson.JsonFactory >> How can I resolve this plz help me regarding this. >> > > > Most of the time, this occurs when the runtime can't find the Jackson > library. Have you added the Jackson JARs to your Eclipse project and added > them to your build path? > > > ----------------- > -Vinny P > Technology & Media Advisor > Chicago, IL > > App Engine Code Samples: http://www.learntogoogleit.com > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/4fc62b67-7f73-4011-96ed-b076c51cf7bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
