2016-03-01 236 views
-1

我從另一臺計算機獲得應用程序,並嘗試將其部署到我的Tomcat中。但我得到的錯誤:Apache Tomcat部署後出錯

HTTP Status 500 - Servlet execution threw an exception 
 

 
type Exception report 
 

 
message Servlet execution threw an exception 
 

 
description The server encountered an internal error that prevented it from fulfilling this request. 
 

 
exception 
 

 
javax.servlet.ServletException: Servlet execution threw an exception 
 

 
root cause 
 

 
java.lang.NoClassDefFoundError: Could not initialize class paris.GlobalParam 
 
\t paris.FormTemplate.<init>(FormTemplate.java:22) 
 
\t paris.loginHandler.Login.<init>(Login.java:27) 
 
\t sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
 
\t sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
 
\t sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
 
\t java.lang.reflect.Constructor.newInstance(Unknown Source) 
 
\t java.lang.Class.newInstance(Unknown Source) 
 
\t org.zkoss.zk.ui.metainfo.ComponentInfo.toComposer(ComponentInfo.java:399) 
 
\t org.zkoss.zk.ui.metainfo.ComponentInfo.toComposer(ComponentInfo.java:391) 
 
\t org.zkoss.zk.ui.metainfo.ComponentInfo.toComposers(ComponentInfo.java:359) 
 
\t org.zkoss.zk.ui.metainfo.ComponentInfo.resolveComposer(ComponentInfo.java:346) 
 
\t org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:599) 
 
\t org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:593) 
 
\t org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:537) 
 
\t org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:569) 
 
\t org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:537) 
 
\t org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:504) 
 
\t org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:365) 
 
\t org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:286) 
 
\t org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:237) 
 
\t org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:159) 
 
\t javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 
 
\t javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

請幫我應該用錯誤信息做..

感謝

+0

您是否嘗試過搜索'java.lang.NoClassDefFoundError'?我可以看到有關該錯誤的大量問題。 –

回答

0

日誌建議要麼你沒有正確的ZK在類路徑中的jar還是可能是ZK版本在兩臺機器上都不同?

+0

那麼這意味着我必須刪除lib文件夾中的ZK東西? – Devisy

+0

我不這麼認爲 - 你需要看看新老服務器之間有什麼區別。從ZK版本或路徑中的位置開始 –