Home  >  Forum  >  Spring
Post New Query

class path resource cannot be opened because it does not exist


joined on
April 15,2013
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

joined on
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








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us