ahchiu
Nov 8th, 2004, 11:54 AM
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,
FileSystemXmlApplicationContext appContext=
new FileSystemXmlApplicationContext("E:/workspace/com/xyz/myapplication/appContext.xml");
BeanFactory bf=(BeanFactory) appContext;
I got the following error:
org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'myBean' defined in file [E:/workspace/com/xyz/myapplication/appContext.xml]: Bean class [org.springframework.remoting.rmi.RmiProxyFactoryB ean] not found; nested exception is java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiProxyFactoryBe an
java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiProxyFactoryBe an
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!!
For example,
FileSystemXmlApplicationContext appContext=
new FileSystemXmlApplicationContext("E:/workspace/com/xyz/myapplication/appContext.xml");
BeanFactory bf=(BeanFactory) appContext;
I got the following error:
org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'myBean' defined in file [E:/workspace/com/xyz/myapplication/appContext.xml]: Bean class [org.springframework.remoting.rmi.RmiProxyFactoryB ean] not found; nested exception is java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiProxyFactoryBe an
java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiProxyFactoryBe an
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!!