Home  >  Forum  >  Spring
Post New Query

class path resource cannot be opened because it does not exist



Asked on April 15, 2013
Hi Please help me to fix  below exception.

java.io.FileNotFoundException: class path resource [application.xml] cannot be opened because it does not exist
    at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:328)
    ... 13 more




Replied on April 15, 2013
I think you are using ClassPathXmlApplicationContext. And in this case you need to put your application.xml in classpath. Check whether you have put application.xml in class path or you have misspelled. 

Write Answer








©2019 concretepage.com | Privacy Policy | Contact Us