`
edwin492
  • 浏览: 112838 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

ss整合问题

    博客分类:
  • SSH
阅读更多

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics