I have code like this in Main.java :
AbstractApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
until recently it was working..but i dont why it started failing with the below exception:
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [spring-config.xml]; nested exception is java.io.FileNotFoundException: class path resource [spring-config.xml] cannot be opened because it does not exist
the spring-config.xml is in src/main/resources folder.
Actually i wanted to learn about the annotations: @Postconstruct and @Predestroy so i changed the build path to Jdk 1.6 from Jdk 1.5.
Since then the problem started..
Any clue guys..why it is not working?
NOTE: If any wants to see my project structure please follow this link http://code.google.com/p/javapracticeram/source/browse/trunk/SpringExample/
EDIT: