我正在使用appengine-sdk 1.9.3。NoClassDefFoundError:無法在生產環境中初始化OauthRawGcsServiceFactory
在devserver中,通常在Eclipse和Ant中工作。
當我部署(更新)到AppEngine上(生產環境),我得到這個錯誤:
event.getResults(): [<pre>Error for /p7/formPanelServlet
java.lang.NoClassDefFoundError: Could not initialize class
com.google.appengine.tools.cloudstorage.oauth.OauthRawGcsServiceFactory
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createRawGcsService(GcsServiceFactory.java:42)
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:34)
at com.bitvisio.p7.server.FormPanelServlet.<init>(FormPanelServlet.java:27)
在FormPanelServlet.java:27,代碼:
private final GcsService gcsService = GcsServiceFactory
.createGcsService(new RetryParams.Builder()
.initialRetryDelayMillis(10)
.retryMaxAttempts(10)
.totalRetryPeriodMillis(15000)
.build());
我把lib/appengine-gcs-client-0.3.9.jar在war/WEB-INF/lib中。我認爲這個庫有一個問題。
感謝您的幫助。
添加哪個依賴項解決了這個問題? – Ashish