AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Docs API in Google App Engine #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Name of API affected:
Docs API

Issue summary:
I'm trying to use the Docs API in Google App Engine (GWT) using Eclipse.

I'm able to successfully get a document list using a normal (non-GAE) project 
with the following code:

***************************************************************************
import java.net.URL;

import com.google.gdata.client.docs.DocsService;
import com.google.gdata.data.docs.DocumentListEntry;
import com.google.gdata.data.docs.DocumentListFeed;

public class TestDocumentsList {

    public static void main(String[] args) {

        try {
            DocsService service = new DocsService("Document List Demo");
            service.setUserCredentials("my@google.account", "password");

            URL documentListFeedUrl = new URL("http://docs.google.com/feeds/default/private/full");

            DocumentListFeed feed = service.getFeed(documentListFeedUrl, DocumentListFeed.class);

            for (DocumentListEntry entry : feed.getEntries()) {
                System.out.println(entry.getTitle().getPlainText());
            }
        }
        catch(Exception e) {
            e.printStackTrace();
        }
    }
}
***************************************************************************

However, when I reference the same libs and add the same imports and code to 
the main class in GreetingServiceImpl.java in the default GWT project, I get an 
error.

Expected output:
List of documents.

Actual results:
Error when reaching GreetingServiceImpl:
[WARN] Error for /test_webapp_gdata/greet
java.lang.NoClassDefFoundError: com/google/gdata/client/docs/DocsService
...

I'm sure the Google App Engine supports the Docs API, so I'm not sure why I'm 
getting this error. Any ideas?

Original issue reported on code.google.com by r...@goldstein.tel on 3 Jan 2011 at 7:32

GoogleCodeExporter commented 9 years ago
Wrong product.

Original comment by nickski1...@gmail.com on 26 Jan 2011 at 8:35

GoogleCodeExporter commented 9 years ago
Removing an obsolete label that was used when these issues were in the 
gdata-issues project.

Original comment by jrobbins@google.com on 21 Jul 2011 at 10:05