今天在整合JPA+Spring+struts1.3时候遇到几个问题,首先就是

Cannot initialize RequestProcessor of class org.springframework.web.struts.DelegatingRequestProcessor

原因没有添加的相应的jar文件,spring2.5核心包中没有spring2.0中的org.springframework.web.struts.DelegatingRequestProcessor类,从而造成不能在spring中注入Action 原因是spring2.0版本中的org.springframework.web.struts包放在了spring-framework- 2.5.6\dist\modules\spring-webmvc-struts.jar里面了所以只要把spring-framework-2.5.6\dist\modules\spring-webmvc-struts.jar包引入你的项目就可以注入action了

 

另外还遇到个错误,java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener,同样是因为缺少Jar文件,导入spring-web.jar即可