It's not a secret anymore!
The moose likes Spring and the fly likes FileNotFoundException -- Spring Context.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "FileNotFoundException -- Spring Context.xml" Watch "FileNotFoundException -- Spring Context.xml" New topic

FileNotFoundException -- Spring Context.xml

Vaideeswaran Natarajan

Joined: Jun 01, 2010
Posts: 8
Hi All,

I have a single eclipse plugin and added a new java package to the current one. I dont have to use Buddy Classloading as there is only one plugin/project. I have added the xml file to the build path and also added the folder containing the xml to the runtime tab of the I use the Spring's ClassPathXmlApplicationContext to access this xml file. I am getting FileNotFoundException.I am struggling with this issue for the last 4 days. Kindly advice.Your help in this is much appreciated.

I placed the xml file in project root folder,project root folder/resources/,src folder....

But still i am getting the exception. This is an eclipse RCP plugin project so there wont be the runtime classpath tab when I click run configurations.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Please post your code that creates the ApplicationContext.

Also, in Eclipse is that directory set as a source directory so that it is truly the root of your classpath?


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: FileNotFoundException -- Spring Context.xml
It's not a secret anymore!