0

我正在使用 Struts 2 - 我的项目中的 Ajax 标签我添加struts2-dojo-plugin-2.1.8.1.jar到我的项目的 lib 文件夹中,并且<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>也被添加,<sx:head />被添加到标题中,<sx:datetimepicker name="deliverydate" label="Delivery Date" displayFormat="dd/MM/yyyy" /> 也被添加到页面的 body 标签内,但我收到错误为 java.lang.ClassNotFoundException :com.opensymphony.xwork2.util.logging.LoggerFactory,任何人都可以帮助我,这是我的错误日志..

'java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.logging.LoggerFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.struts2.dojo.components.DateTimePicker.<clinit>(DateTimePicker.java:184)
at org.apache.struts2.dojo.views.jsp.ui.DateTimePickerTag.getBean(DateTimePickerTag.java:59)
at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49)
at org.apache.jsp.login_jsp._jspx_meth_sx_005fdatetimepicker_005f0(login_jsp.java:277)
at org.apache.jsp.login_jsp._jspx_meth_s_005fform_005f0(login_jsp.java:196)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:117)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)

'

4

1 回答 1

0

我认为您的项目没有xwork-core-xxx.jar文件。添加xwork-core-xxx.jar到您的lib目录。xxx是jar的版本号。这将解决您的问题。

于 2012-07-24T15:39:13.463 回答