Hi, i'm trying to access contacts but i got an error.
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
String AccessToken= req.getParameter("accessToken");
ContactsService myService = new ContactsService("CloudOffice");
myService.setHeader("Authorization", "Oauth <OAUTH_TOKEN>")
// Authorize the service object.
// Request the feed
resp.getWriter().println(feedUrl.toString());
ContactFeed resultFeed=new ContactFeed();
try {
resultFeed = myService.getFeed(feedUrl, ContactFeed.class);
} catch (ServiceException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Problem accessing /contactaccess. Reason:
com/google/gdata/client/contacts/ContactsService
Caused by:
java.lang.NoClassDefFoundError: com/google/gdata/client/contacts/ContactsService
at contactAccess.ContactAccessServlet.doGet(ContactAccessServlet.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
...
It looks like i'm missing something...
can you help me?