struts+spring+hibernate整合出现的问题解决方法
2014-11-06 16:04
671 查看
java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]
意思大致是找不到applicationContext.xml文件,大部分的人在web.xml下面是这样配置:<context-param>
<param-name>contextCofigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
这样配置其实没有问题,应该是MyEclipse不同引起,MyEclipse创建applicationContext.xml文件默认是放在src
下面,web.xml配置默认读取是/WEB-INF/applicationContext.xml,所以遇到这问题是把web.xml配置下面改成
<param-value>/WEB-INF/applicationContext.xml</param-value>
,在把applicationContext.xml放到WEB-INF下面即可。
java.lang.IllegalStateException: The action name cannot be the same as the action suffix [Action]
这是action的继承类引起的,把action的继承类改成 com.opensymphony.xwork2.ActionSupport 即可。
相关文章推荐
- struts+spring+hibernate整合问题解决方法 陆续更新中....
- struts+spring+hibernate整合问题解决方法
- struts hibernate spring 环境配置时出现 HTTP Status 404 Servlet action is not available (解决方法)
- 整合struts+spring+jpa中出现的解决方法
- 解决在Spring整合Hibernate配置tx事务管理器出现错误的问题
- Struts+Spring+Hibernate项目框架构建中的问题及解决方法集锦(2)
- 整合struts+spring+jpa中出现的解决方法
- Struts Spring Hibernate 框架整合时候出现的问题
- struts,spring和hibernate的出现解决了什么问题
- Struts2+Spring 整合成功测试案例--整合过程中遇到的问题及解决方法(一)
- 用Myeclipse5.5+Tomcat5.5整合Spring2.0+struts1.2时出现的兼容性问题及解决办法
- 整合struts+spring+jpa中出现的解决方法
- Struts+Spring+Hibernate项目框架构建中的问题及解决方法集锦(1)
- 解决在Spring整合Hibernate配置tx事务管理器出现错误的问题
- Struts Spring Hibernate 框架整合时候出现的问题
- MyEclipse 7.0M1 SSH 整合开发问题解决:Spring2.5+hibernate3.1+Struts1.3 +Tomcat6.0
- 解决Spring中AOP不能切入Struts的DispatchAction方法的问题
- Hibernate数据的lazy问题,以及使用spring整合hibernate lazy的解决办法(好文转载)
- Struts + Spring + Hibernate + Mysql中文问题解决
- Struts + Spring + Hibernate + Mysql中文乱码问题解决