ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  What Is Spring, Part 1
Subject:   Problem in Running the code
Date:   2007-09-16 20:13:25
From:   jassssssss
I have taken all the required steps like created a development environment similar to Spring sample applications.

I have placed the spring.xml file in the web-inf directory But, when I run the program i get the following runtime exception:
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStore
Exception: IOException parsing XML document from class path resource [C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/springdatabases/WEB-INF/springapp-servlet.xml]; nested exception is java.io.FileNotFoundException: class path resource [C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/springdatabases/WEB-INF/springapp-servlet.xml] cannot be opened because it does not exist