ss整合问题

ss整合问题

初次弄这个就弄了半天。。。。。以下是问题的一些解决方法,都来自于网上。。。

问题1、Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

1.web.xml问题

<context-param>

<param-name>contextConfigLocation </param-name>

<param-value>/WEB-INF/classes/applicationContext.xml </param-

value>

</context-param>

加载spring的默认配置文件位置一般是在/WEB-INF/下找applicationContext.xml文

件。而Myeclipse文件自动生成的applicationContext文件是放在/WEB-

INF/classes/applicationContext.xml。所以在默认加载中是找不到

applicationContext.xml文件的,必须加入上面配置。

问题2、Unable to load configuration. - action - |Caused by: Action class[login] not found - action -Error configuring application listener of class


问题3、org.springframework.web.context.ContextLoaderListener

2.struts,spring的jar包缺少

直接用myeclipse8.0中的struts和spring的jar但两者整合时,jar还是缺少了。

额外加入了struts的jar

struts2-spring-plugin-2.1.8.jar

spring需增加的jar包

spring.jar

spring-web.jar

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值