Hey Benjamin,

That would be a correct analysis, but I have the sneaking suspicion that OP 
is not using Maven, and thus has forgotten to include the relevant jar 
dependencies for the API client library.

On Tuesday, February 16, 2016 at 12:01:35 PM UTC-5, Benjamin Com wrote:
>
> 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, <amit...@sial.com> 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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/51d4de6e-1940-405b-af46-a4f2af80660b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to