Calling google drive api, missing javax.servlet.http.HttpServletRequest

Peter Cheung <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <SG2PR01MB034880F4DED37D9898C914BBB5960@SG2PR01MB0348.apcprd01.prod.exchangelabs.com>
Hi

   In my iMac, i am calling google drive api to upload a zip file and i got these. In my other mac i don't have that. Both are latest netbeans. And I already added "Servlet 2.2 API", i even tried "Servlet 3.1/JSP 2.3 API Library", but still fail, may i know why? thanks


java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest

at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:262)

at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)

Caused: java.lang.ClassNotFoundException: javax.servlet.http.HttpServletRequest starting from ModuleCL@11d9e517[com.github.netbeanssyncsettings] with possible defining loaders [ModuleCL@39fff9b4[org.netbeans.modules.servletapi]] and declared parents [ModuleCL@5b11c1de[org.openide.awt], ModuleCL@1ee735ca[org.openide.io], org.netbeans.MainImpl$BootClassLoader@19dfb72a]

at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)

at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

Caused: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

at com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver.getRedirectUri(LocalServerReceiver.java:98)

at com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp.authorize(AuthorizationCodeInstalledApp.java:76)

at com.github.netbeanssyncsettings.SyncSettingsToGoogleDrive.authorize(SyncSettingsToGoogleDrive.java:75)

at com.github.netbeanssyncsettings.SyncSettingsToGoogleDrive.getDriveService(SyncSettingsToGoogleDrive.java:81)

[catch] at com.github.netbeanssyncsettings.SyncSettingsToGoogleDrive$1.run(SyncSettingsToGoogleDrive.java:104)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.