ssh配置看不懂,请指教 web.xml 系统的部署描述符web.xml中配置一些系统启动参数,配置一些启动时的配置文件的读取等。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你这个配置文件哪来的,有问题哟,你再找找比较经典的看看classpath*:/applicationContext.xmlclasspath*:/applicationContext-security.xml这两行一定有问题,你的本意在web.xml中struts整合spring,但是报错说你的applicationContext.xml没找到哟 ssh整合配置,看看这个吧http://blog.csdn.net/wumingzu/article/details/4157177 web.xml里面主要是框架文件的监听 启用 <context-param><param-name>contextConfigLocation</param-name><param-value>classpath*:/applicationContext.xmlclasspath*:/applicationContext-security.xml</param-value></context-param>你这段配置是spring框架加载配置文件用的java.io.FileNotFoundException: Could not open ServletContext resource [/C:/Users/chenrh1/Desktop/support2(wuhonlin)/support2Web/conf/applicationContext.xml]从这段报错信息看是applicationContext.xml文件没找到,你可以看下上面标红的一段,这个文件的路径前面为什么会有个 / 再结合你的web.xml中的配置, 你可以把classpath*:/applicationContext.xmlclasspath*:/applicationContext-security.xml这两个配置前面的 / 去掉, 再重启试试 把这两行删了classpath*:/applicationContext.xmlclasspath*:/applicationContext-security.xml 我删掉了这一段,并将applicationContext.xml拷贝到WEB-INF目录下,重新部署,提示下面org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined 貌似是少文件了啊,spring的配置文件! classpath*:是啥意思呢? classpath*:是啥意思呢?就是说applicationContext.xml和applicationContext-security.xml都要放在类路径下才可以被加载到,也就是工程的src下面。 这个是sping的配置路径 web.xml如果用的是myecplise 是自动生成的 如果是ecplise就需要自己配置了 具体就是配置一些路径如果要详细了解ssh框架配置的话可以参考李刚的疯狂java十几米时第三版 ssh企业实战 或者网上搜马士兵的视频 org.springframework.beans.factory.BeanCreationException: Struts2中如何区别得到类型转换出的age值0与手工在界面输入的age值0,我需要并分别处理!具体请进贴! 高分,求助Web项目中Hibernate异常 spring 多个DAO的声明式事务 Sun官方教程有错!? 问一个最基本的问题:Axis里的那几个包(大约是9个吧),到底需要放在哪里? 如何停止rmi server进程 xml节点新增问题? 关于JBoss 高分求救!关于petstore在weblogic上的部署 hibernate多对一查询问题 weblogic问题
classpath*:/applicationContext.xml
classpath*:/applicationContext-security.xml
这两行一定有问题,你的本意在web.xml中struts整合spring,但是报错说你的applicationContext.xml没找到哟
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:/applicationContext.xml
classpath*:/applicationContext-security.xml
</param-value>
</context-param>你这段配置是spring框架加载配置文件用的java.io.FileNotFoundException: Could not open ServletContext resource [/C:/Users/chenrh1/Desktop/support2(wuhonlin)/support2Web/conf/applicationContext.xml]从这段报错信息看是applicationContext.xml文件没找到,你可以看下上面标红的一段,这个文件的路径前面为什么会有个 / 再结合你的web.xml中的配置, 你可以把
classpath*:/applicationContext.xml
classpath*:/applicationContext-security.xml
这两个配置前面的 / 去掉, 再重启试试
classpath*:/applicationContext-security.xml
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined
classpath*:是啥意思呢?
classpath*:是啥意思呢?
就是说applicationContext.xml和applicationContext-security.xml都要放在类路径下才可以被加载到,也就是工程的src下面。
这个是sping的配置路径 web.xml如果用的是myecplise 是自动生成的 如果是ecplise就需要自己配置了 具体就是配置一些路径
如果要详细了解ssh框架配置的话可以参考李刚的疯狂java十几米时第三版 ssh企业实战 或者网上搜马士兵的视频