带有Spring ClassNotFound异常的java.rmi.UnmarshalException

时间:2017-04-03 16:54:09

标签: java spring maven rmi spring-bean

当我尝试运行应用程序时,获得以下异常:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoService' defined in class path resource [META-INF/managerBeans.xml]: Invocation of init method failed; nested exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
java.lang.ClassNotFoundException: org.springframework.remoting.rmi.RmiInvocationWrapper_Stub
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)

.m2存储库中提供了spring.jar, spring-core.jar and spring-beans.jar等关联的spring jar文件。

使用的弹簧版本是2.5.5

JDK:1.6更新65

Maven:3.0.4

操作系统:Mac 10.11.6

没有弄清楚这里可能缺少什么。

请澄清。感谢。

0 个答案:

没有答案