发表于: 2017-05-24 22:11:29
1 1078
今天完成的事情:
还是在学习rmi...改bug
明天计划的事情:
在原来的WEB中调用Service。
遇到的问题:
报错....
第一个问题晚上回来解决了,将BaseService放入inface目录下,解决下面那段报错
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseService' defined in class path resource [spring.xml]: Invocation of init method failed; nested exception is org.springframework.remoting.RemoteLookupFailureException: Lookup of RMI stub failed; nested exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
"java.lang.ClassNotFoundException: inface.BaseService (no security manager: RMI class loader disabled)"已经解决
然后....这个问题还没有解决..网上的方法和我的例子都不太符合
defined in class path resource [spring.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: com.sun.proxy.$Proxy1 cannot be cast to java.rmi.Remote
at org.springframework.beans.factory.support.Ab
收获:
.....被bug搞的头昏脑胀
评论