Unable to load configuration. - action - |Caused by: Action class [login] not found - action -

Ssh導入eclipse後各種報錯,一路修改,又出現以下問題

Unable to load configuration. - action - |Caused by: Action class [login] not found - action -

找了很多資料,發現
原來是JAR導入不完全的問題!
如果你的struts.xml和applicationContext.xml都配置正確,還報以上的錯誤,那麼可以判斷你的項目缺少jar包:struts2-spring-plugin-2.0.11.1.jar、commons-fileupload-1.2.1.jar和commons-io-1.3.2.jar導入這些jar包就行了,這些jar可以在struts-2.2.1的lib下找到。
在搭工程的時候,commons-fileupload-1.2.1.jar和commons-io-1.3.2.jar要是忘記了,報錯很容易就看出來少哪些jar包,但是struts2-spring-plugin-2.0.11.1.jar不太容易發現



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章