Back Forum Reply New

applicationContext.xml can´t be found in RCP-Application

Hi,
i´m working on a rcp-application with Spring 2.0. I have my Spring-Libraries in a seperate plugin and when the plugin is activated the applicationContext-Object is created.

In the activator-class of the SpringWrapper-Plugin i create the applicationContext in the start()-Method. Here is the code:Code:
public void start(BundleContext context) throws Exception {
super.start(context);
appContext = new ClassPathXmlApplicationContext(quot;applicationContext.xmlquot;);
}
The Spring-configuration-file named quot;applicationContext.xmlquot; is in the same package as the above class.

When i start my application and the above code is executed i get the following errors:

quot;IOException parsing XML document from class path resource [applicationContext.xml]quot;

causeFileNotFoundException  
detailMessagequot;class path resource [applicationContext.xml] cannot be opened because it does not existquot;

But it does exist!! Can anybody tell me what i´m doing wrong?

Any help would be much appreciated.
Christoph

I would presume the file must not be on the classpath, hence it can't find it.

yes, but how can it be NOT on the classpath, when it is in the same package as the class that calls it???
¥
Back Forum Reply New