在Src/com/topera/psm/config/目录下有applicationContext.xml
在WEB-INF目录下有web.xml,在web.xml中配置:<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:com/topera/psm/config/applicationContext.xml</param-value>
</context-param>
在启动Tomcat时报错,我是在IntelliJ IDEA工具下
[Unison] ERROR [main] ContextLoader.initWebApplicationContext(203) | Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException:IOException parsing XML document from class path resource [com/topera/psm/config/applicationContext.xml]; nested exceptionis java.io.FileNotFoundException: class path resource [com/topera/psm/config/applicationContext.xml] cannot be opened because it does not exist求求各位帮帮忙啦,我的配置应该没错,路径也没有错,但是启动Tomca 6 的时候却出现此错误,怎么办啊。。谢谢各位帮小弟一把了。
在WEB-INF目录下有web.xml,在web.xml中配置:<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:com/topera/psm/config/applicationContext.xml</param-value>
</context-param>
在启动Tomcat时报错,我是在IntelliJ IDEA工具下
[Unison] ERROR [main] ContextLoader.initWebApplicationContext(203) | Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException:IOException parsing XML document from class path resource [com/topera/psm/config/applicationContext.xml]; nested exceptionis java.io.FileNotFoundException: class path resource [com/topera/psm/config/applicationContext.xml] cannot be opened because it does not exist求求各位帮帮忙啦,我的配置应该没错,路径也没有错,但是启动Tomca 6 的时候却出现此错误,怎么办啊。。谢谢各位帮小弟一把了。
解决方案 »
- HTTP Status 500 - Dispatch[/monitor] to method totalSheetMonitor returned an exc
- SSH构架做查询数据,怎么查完之后表里的数据都没了呢?
- Java调用Weblogic JNDI的问题
- xfire weblogic9服务器接收二进制数据问题,
- hibernate的空值处理
- 关于java正则表达式解析文本
- 图片上传设计方案问题
- 在哪可下载关于EJB和J2EE的电子书籍?
- 求Sun宠物店范例
- 网页界面播放终端实时视频方案。高分求?
- 怎样利用水晶报表自动将指定报表以Excel方式发邮件给指定用户(求关注)
- 在线急等!不用button,怎样实现多个submit对应一个jsp!
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:com/topera/psm/config/applicationContext.xml</param-value>
</context-param>
没这样放过,一直都是放在WEB-INF下面的。
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>