Announcement Announcement Module
No announcement yet.
Eclipse Plugin Dev and loading AppContext - problem2 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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,
    FileSystemXmlApplicationContext appContext=
          new FileSystemXmlApplicationContext("E:/workspace/com/xyz/myapplication/appContext.xml");
    BeanFactory bf=(BeanFactory) appContext;
    I got the following error:
    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!!

  • #2
    Are you getting this problem when you run the example? If so you need to add spring.jar to the classpath of your eclipse project rather than to the eclipse plugin. There is nothing wrong with the code you have shown and it should work just fine. Try running this outside of Eclipse first and then try adding spring.jar to the project classpath.