當前位置:編程學習大全網 - 網站源碼 - struts2 Context startup failed due to previous errors!!!

struts2 Context startup failed due to previous errors!!!

過濾器應該使用<filter>

<filter-name>struts2</filter-name>

<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>

</filter>

而不是FilterDispatcher,這個是最早的版本,妳現在用的包已經不支持這個了,何況就單獨跑個struts2也用不了那麽多包。 struts2-core-2.0.6.jar

xwork-2.0.4.jar

ognl-2.6.11.jar

freemarker-2.3.8.jar

commons-logging-1.0.4.jar這5個就夠了,如果有上傳功能再加上commons-fileupload.jar

  • 上一篇:為什麽不能直接訪問主機房做的emlog博客?
  • 下一篇:unexpected token是什麽意思,怎麽解決
  • copyright 2024編程學習大全網