请教《WebWork in action》中第一个HelloWorld例子问题
请教《WebWork in action》中第一个HelloWorld例子问题:
第2章的HelloWorld例子,我按照书上步骤做,就是报错. 查了好几下了。请教一下是什么原因呢?谢谢!
(Tomcat版本是6.0.18 )。
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
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 com.opensymphony.xwork.util.OgnlValueStack
com.opensymphony.xwork.ActionContext$ActionContextThreadLocal.initialValue(ActionContext.java:331)
java.lang.ThreadLocal.setInitialValue(Unknown Source)
java.lang.ThreadLocal.get(Unknown Source)
com.opensymphony.xwork.ActionContext.getContext(ActionContext.java:153)
com.opensymphony.webwork.dispatcher.WebWorkRequestWrapper.getAttribute(WebWorkRequestWrapper.java:38)
com.opensymphony.webwork.dispatcher.DispatcherUtils.createContextMap(DispatcherUtils.java:352)
com.opensymphony.webwork.dispatcher.DispatcherUtils.createContextMap(DispatcherUtils.java:311)
com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:241)
com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:111)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.