我從另一臺計算機獲得應用程序,並嘗試將其部署到我的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)
請幫我應該用錯誤信息做..
感謝
您是否嘗試過搜索'java.lang.NoClassDefFoundError'?我可以看到有關該錯誤的大量問題。 –