MyException - 我的异常网
当前位置:我的异常网» Eclipse » org.springframework.beans.factory.BeanDefinition

org.springframework.beans.factory.BeanDefinitionStoreException: IOException

www.MyException.Cn  网友分享于:2013-11-11  浏览:4659次
启动tomcat报的错
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-action.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext-action.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions

请帮帮忙看看是什么错误!谢谢!

------解决方案--------------------
applicationContext-action.xml放错地方了吧,class path找不到。
------解决方案--------------------
java.io.FileNotFoundException: class path resource [applicationContext-action.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions


------解决方案--------------------
把spring的配置文件放到src下
------解决方案--------------------
探讨

把spring的配置文件放到src下

------解决方案--------------------
applicationContext-action.xml 文件程序没有找到
------解决方案--------------------
application-action.xml 应该写的是tomcat下的路径 应该在classes包下把 你仔细找下 

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有