Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9014571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:32:29+00:00 2026-06-16T03:32:29+00:00

I am new to google api. I am trying to create a simple web

  • 0

I am new to google api. I am trying to create a simple web application (Java EE) to read DocumentListFeed from google doc. My code in the servlet is:

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{

    try 
    {   
        DocsService service = new DocsService("Document List Demo");
        service.setUserCredentials(NAME, PASSWORD);

        response.getWriter().println("helloooooo");


        //URL documentListFeedUrl = new URL("http://docs.google.com/feeds/documents/private/full");     
        URL documentListFeedUrl = new URL("https://docs.google.com/feeds/default/private/full?v=3");        
        DocumentListFeed feed = service.getFeed(documentListFeedUrl, DocumentListFeed.class);

        for(DocumentListEntry entry : feed.getEntries())
        {
            response.getWriter().println(entry.getTitle().getPlainText());
        }



    }   

    catch (Exception e)
    {

        response.getWriter().println(e);
    }
}

But it is showing me the error: java.lang.NoClassDefFoundError: com/google/gdata/client/docs/DocsService

I am using Glassfish server and Ecllipse. And added external jar file: activation.jar, guava-r07.jar, mail.jar, servlet.jar, gdata-client-1.0.jar, gdata-client-meta-1.0.jar, gdata-core-1.0.jar, gdata-media-1.0.jar, gdata-docs-3.0.jar, gdata-docs-meta-3.0.jar.

I have copied this same code to java standard edition and it is working fine. Could please tell me why this thing is not working in Java EE? Is it a problem in GlassFish server?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:32:31+00:00Added an answer on June 16, 2026 at 3:32 am

    It just means that the jars are not present in your Glassfish server classpath.
    Add all the jars you listed to yuor glassfish server classpath. Since am not an Glassfish expert i cannot help you in adding the jars to your server.
    In case of weblogic, you just need to package all the jars in your project APP-INF directory.

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Google Map api v3. I am trying to create a
I'm new to the Google API (v3) and I am trying to create a
Im trying to simply create a new document using the Zend Google Docs API's
I am trying to create a new document on Google Drive from my android
I am new to JS and the Google API and I am trying to
With google maps api (utlizing there new Places Library)Im trying to: Display a map
I am trying to create a WordCloud through the Google Visualization API . You
I'm trying to create a searchable activity that gets its results from the google
I am trying to deserialize a json response from a google api, so i
I'm trying to create map (using the Google Maps JavaScript API V3 ) which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.