Eclipse Plugin Dev and loading AppContext - problem2
In the problem1 post, even if i can load the appContext.xml file using FileSystemXmlApplicationContext, I cannot load the beans defined in it.
For example,
Code:
FileSystemXmlApplicationContext appContext=
new FileSystemXmlApplicationContext("E:/workspace/com/xyz/myapplication/appContext.xml");
BeanFactory bf=(BeanFactory) appContext;
I got the following error:
Code:
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'myBean' defined in file [E:/workspace/com/xyz/myapplication/appContext.xml]: Bean class [org.springframework.remoting.rmi.RmiProxyFactoryBean] not found; nested exception is java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiProxyFactoryBean
java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiProxyFactoryBean
where myBean uses org.springframework.remoting.rmi.RmiProxyFactoryBe an to access the rmi service
I have included the spring.jar into the runtime library in the plugin.xml and the into the Java Build Path as library
I use spring 1.1.1
Please help!!