Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » FileNotFoundException -- Eclipse Plugin
FileNotFoundException -- Eclipse Plugin [message #544683] Mon, 05 July 2010 09:19 Go to next message
vaideeswaran  is currently offline vaideeswaran Friend
Messages: 8
Registered: June 2010
Junior Member
Hi All,

I have a single plugin and added a new 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
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
Re: FileNotFoundException -- Eclipse Plugin [message #545758 is a reply to message #544683] Thu, 08 July 2010 23:58 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 418
Registered: July 2009
Senior Member
Hi,

Try this class:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/reference/api/org/eclipse/core/runtime/Fil eLocator.html

Also, in the scenario uyou describe,
getClass().getClassLoader().getResource(string) is also an option.

Regards,

Wim


> Hi All,
>
> I have a single plugin and added a new 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
> 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
Re: FileNotFoundException -- Eclipse Plugin [message #759075 is a reply to message #545758] Fri, 25 November 2011 23:32 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 13
Registered: November 2011
Junior Member
I have exactly the same problem. Have you managed to sort the problem?
Regards,
Julien.
Re: FileNotFoundException -- Eclipse Plugin [message #759318 is a reply to message #759075] Mon, 28 November 2011 11:15 Go to previous message
Ellis Yu is currently offline Ellis YuFriend
Messages: 15
Registered: July 2009
Junior Member
Same here. I've struggled this problem for three days. If I ran in junit test, I can read the xml without problem. But if I ran in my RCP app, the xml file can't be found. The problem seem related to classloader issue. That's difficult for beginner to figure out.

Regards
Ellis
Previous Topic:memorize window size and posotion : RCP application
Next Topic:Calculate RCP Product Classpath for Embedded Eclipse Compiler
Goto Forum:
  


Current Time: Fri Nov 21 16:44:53 GMT 2014

Powered by FUDForum. Page generated in 0.01824 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software