Google Docs and AppEngine: NoClassDefFoundError... why?

64 views
Skip to first unread message

Patrick Moore

unread,
Sep 23, 2009, 3:53:07 PM9/23/09
to google-a...@googlegroups.com
Hi there --

I am running into one of those problems that makes you feel very stupid.

I have an java application that works just fine when running using the Google WebApp plugin on Eclipse 3.5. I have the 1.2.5 version.

Great! ready to upload! Except that I get NoClassDefErrors when I try to run the application on AppEngine

Uncaught exception from servlet
java.lang.NoClassDefFoundError: Could not initialize class com.google.gdata.client.http.GoogleGDataRequest
at com.google.gdata.client.http.GoogleGDataRequest$Factory.createRequest(GoogleGDataRequest.java:73)
at com.google.gdata.client.http.HttpGDataRequest$Factory.getRequest(HttpGDataRequest.java:162)
at com.google.gdata.client.Service.createRequest(Service.java:697)
at com.google.gdata.client.GoogleService.createRequest(GoogleService.java:525)
at com.google.gdata.client.Service.createFeedRequest(Service.java:1074)
at com.google.gdata.client.Service.getFeed(Service.java:915)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
at com.google.gdata.client.Service.getFeed(Service.java:935)

I suspect that there might be a underling issue and the real not a missing class ... but there is no information other than this....

Any thoughts ?

(attached is the war/WEB-INF/lib listing )

-Pat

WEB-INF.lib.listing.txt

Mario Renato Uriarte Amaya

unread,
May 23, 2012, 9:33:55 AM5/23/12
to google-a...@googlegroups.com
Hi patmoore,

I have the same problem


Did you find any solution ?

Thks

alex

unread,
May 23, 2012, 10:08:21 AM5/23/12
to google-a...@googlegroups.com
If this helps: in case you're using OAuth 2.0 for authentication, you'll need Google HTTP Client [1] and Google OAuth Client [2] in addition to GData Client library.

I just wrote a little overview on the related stuff here yesterday: 

More specifically, you'd need 
- google-http-client-*.jar
- google-http-client-appengine-*.jar
- google-oauth-client-*.jar
- google-oauth-client-appengine-*.jar

Bear with me If you're not doing OAuth 2.0.

Reply all
Reply to author
Forward
0 new messages