我使用Struts 2 - 在我的項目,我在我的項目加入struts2-dojo-plugin-2.1.8.1.jar
到lib文件夾中的Ajax標籤,並<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
還補充說,<sx:head />
在頭部添加,<sx:datetimepicker name="deliverydate" label="Delivery Date" displayFormat="dd/MM/yyyy" />
還增加體內在頁面標籤,但我得到的錯誤是拋出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)
'
它說它無法找到LoggerFactory類,它表明你缺少核心xwork jar.what你的類路徑中有所有的jar嗎?確保你的類路徑中有x-work核心,因爲上面的類是xwork-core.jar的一部分 – 2012-07-24 14:54:00
我有xwork-2.0.7.jar這個jar文件在我的庫中。我的項目將在添加struts2- dojo-plugin-2.1.8.1.jar文件,只有在添加struts2-dojo-plugin-2.1.8.1.jar jat文件後,纔會出現上述錯誤。 – 2012-07-25 06:12:56