This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 17249
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FileNotFoundException -- Spring Context.xml
 
Similar Threads
help required in Eclipse IDE
http://java.sun.com/jstl/core cannot be resolved
Eclipse plugin - MultiPageEditorPart
Drools runtime environment
Problem with the path inside a jar-file