aspose file tools*
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
Author

FileNotFoundException -- Spring Context.xml

Vaideeswaran Natarajan
Greenhorn

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 Manifest.mf. 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.

Thanks
V
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

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?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: FileNotFoundException -- Spring Context.xml