日期:2014-05-20  浏览次数:20698 次

struts2和spring整合问题(导入了struts-spring-plugin.jar)
各位大侠们:是这样的,在整合struts2和spring的时候,把action叫给spring管理,导入了
struts2-spring-plugin-2.1.8.1.jar,web.xml也写了配置
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:beans.xml</param-value>
</context-param>
但是却显示了加载不了包的错误,请看异常信息:
Unable to load configuration. - bean - jar:file:/E:/Tomcat/Tomcat%206.0/webapps/Spring_2900_Registration_7/WEB-INF/lib/struts2-spring-plugin-2.1.8.1.jar!/struts-plugin.xml:29:132
,这是什么原因

------解决方案--------------------
要么少了包要么多了包。自己看看