Pessoal, sou totalmente iniciante em rmi.
Estou com o seguinte problema:
[java] java.rmi.ConnectIOException: non-JRMP server at remote endpoint
[java] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:217)
[java] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
[java] at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
[java] at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
[java] at java.rmi.Naming.rebind(Naming.java:160)
[java] at hello.rmi.HelloServer.main(Unknown Source)
[java] java.rmi.ConnectIOException: non-JRMP server at remote endpoint
Estou passando os seguintes parametros para a jvm, com ajuda do ant
<jvmarg value="-Djava.rmi.server.codebase=${codebase}"/>
<jvmarg value="-Djava.security.policy=${lib.dir}/rmi.policy"/>
da erro quando uso o método
Naming.rebind("hellormi", hello);
Alguém pode me ajudar?