我試圖檢索webpage.But數據庫和顯示所有的元素現在是生產錯誤HTTP Status 500 - Servlet execution threw an exception
。任何人都可以告訴我如何解決這個錯誤。請幫幫我。HTTP狀態500 - Servlet的執行引發了異常在tomcat7
堆棧跟蹤:
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: com/google/gson/JsonObject
skypark.RetriveIm.doGet(RetriveIm.java:64)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause
java.lang.ClassNotFoundException: com.google.gson.JsonObject
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
skypark.RetriveIm.doGet(RetriveIm.java:64)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
完整的源代碼在this問題
這是#64
線Gson gson=new Gson();
請幫我........謝謝... 。
的異常堆棧跟蹤本身就說明這到底是怎麼下怎麼回事引擎蓋 - 'java.lang.NoClassDefFoundError:com/google/gson/JsonObject'。 – Lion 2013-02-09 11:28:15
如何在tomcat服務器上安裝/部署servlet代碼? – 2013-02-09 14:50:41