eclipse中的jakarta ee Java RMI问题
我遇到了这个错误,我尝试了所有可能的方法,但是我无法解决这个问题,请帮助解决这个问题
我正在使用Eclipse indigo IDE
从cmd
开始rmiregistry
Exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: RMISIntf
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: RMISIntf
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:419)
# 1 楼答案
注册表没有在其类路径上的
ClassNotFoundException
中命名的类。解决和其他几个RMI问题的最简单的解决方案是在服务器JVM中启动注册表,使用LocateRegistry.createRegistry().