0
> HTTP Status 500 - Error instantiating servlet class msch.OAuth > > type Exception report > > message Error instantiating servlet class msch.OAuth > > description The server encountered an internal error that prevented it from fulfilling this request. > > exception > > javax.servlet.ServletException: Error instantiating servlet class msch.OAuth > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:722) > > root cause > > java.lang.NoClassDefFoundError: com/google/gdata/client/authn/oauth/OAuthSigner > java.lang.Class.getDeclaredConstructors0(Native Method) > java.lang.Class.privateGetDeclaredConstructors(Class.java:2413) > java.lang.Class.getConstructor0(Class.java:2723) > java.lang.Class.newInstance0(Class.java:345) > java.lang.Class.newInstance(Class.java:327) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:722) > > root cause > > java.lang.ClassNotFoundException: com.google.gdata.client.authn.oauth.OAuthSigner > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) > java.lang.Class.getDeclaredConstructors0(Native Method) > java.lang.Class.privateGetDeclaredConstructors(Class.java:2413) > java.lang.Class.getConstructor0(Class.java:2723) > java.lang.Class.newInstance0(Class.java:345) > java.lang.Class.newInstance(Class.java:327) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:722)
注:根本原因的完整堆棧跟蹤可在的Apache Tomcat/6.0.36日誌。的Oauth + Java servlet爲+ OAuthSigner + Servlet類實例化的錯誤
以下是我嘗試運行我的servlet以請求Oauth令牌時的錯誤。 這裏msch.OAuth是servlet類。我是否必須配置構建路徑幷包含該類?如果是這樣,如何?因爲它在一個文件夾中,並且只有一個.java文件。
如果有人知道請分享哪些運行配置用於Java Servlet Web應用程序。 – Gambit