出现错误:Exception starting filter [struts2] Unable to load configuration的解决办法

使用Spring和Struts2进行合并时,遇到了上述问题,问题的原因myeclipse说的比较清楚:

Caused by: Action class [com.spring.oa.struts2.action.personAction] not found - action - 
file:/D:/develop/tomcat9.0/webapps/LTFOAprogram/WEB-INF/classes/struts2/struts-person.xml:7:97

当出现这个问题的时候,解决方案如下:

第一步:先检查你是否缺少相关的jar包,如commons-fileupload-1.2.1 ,commons-logging , struts2-spring-plugin-2.1.8.1。尤其是最后一个struts2-spring-plugin-2.1.8.1,这个jar包的作用就是用来整合spring和Struts2的,我的错误原因就是缺少了它。

第二步:检查strut.xml文件中你的class有没有拼写错误。

原文地址:https://www.cnblogs.com/dengkaien/p/7919670.html