Dispatcher initialization failed


嚴重: Dispatcher initialization failed java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 處理方法: 1、核對lib包 commons-fileupload-1.2.1.jar, commons-io-1.3.2.jar commons-logging-1.0.4.jar freemarker-2.3.16.jar ognl-3.0.jar struts2-core-2.2.1.jar xwork-core-2.2.1.jar 注意2.1以前是沒有commons-fileupload-1.2.1.jar, 2、如果struts2版本是2.1以前 web.xml配置過濾器的時候應該是這樣: index struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* 如果struts2 版本是2.1以上 web.xml配置 index.jsp struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* 3、 在使用struts-2.2.1時,需要引入javassist-3.7.ga.jar,而這個在struts-2.2.1\lib下是沒有的,需要在struts-2.2.1\apps\struts2-blank-2.2.1.war下的lib中找。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM