简体   繁体   中英

Eclipse RCP Spring integration error

I'm facing issue, integrating Spring in my eclipse rcp project. Basically, to avoid confusion, I've created a simple Hello RCP With a view, created a Plugin from existing jars(for spring Jars), added this project to Hello RCP with a view as a dependency, I've placed applicationContext.xml file in my src folder of the RCP project. It always throws FileNotFoundException when I place applicationContext.xml in the src folder. As a workaround I've also tried using absolute path

ApplicationContext applicationContext = new FileSystemXmlApplicationContext("E:/applicationContext.xml");

This approach thorws ClassNotFoundException: Cannot find class with bean Name .....

for a normal Java application it works for me. How can I do that, where to place applicationContext.xml in Eclipse RCP, are there any simple tutorials for integrating spring with eclipse rcp. How to get rid of this issue and use spring in my application.

Spring DM is an option for integrating spring and osgi. expose spring beans as services in osgi.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM