Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有spring ClassNotFound异常的java.rmi.UnmarshaleException_Java_Spring_Maven_Rmi_Spring Bean - Fatal编程技术网

带有spring ClassNotFound异常的java.rmi.UnmarshaleException

带有spring ClassNotFound异常的java.rmi.UnmarshaleException,java,spring,maven,rmi,spring-bean,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.ServerEx

尝试运行应用程序时,出现以下异常:

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)
相关的SpringJAR文件,如
spring.jar、spring-core.jar和springbeans.jar
在.m2存储库中可用

使用的弹簧版本为2.5.5

JDK:1.6更新65

马文:3.0.4

操作系统:Mac 10.11.6

不知道这里可能缺少什么


请澄清。谢谢。

Beig'available in the.m2 directory'不会将它们放在您的类路径上。经过多次尝试和错误,JDK 1.6U22的相同配置在我的Windows机器上运行。不确定为什么它不能在Mac上运行???@EJP,如果我的eclipse项目在maven依赖项下显示所需的jar文件,这是否意味着jar在类路径上?