RMI
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ganesh_sundaram
Posted On:   Thursday, April 11, 2002 10:14 PM

java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect

Re: RMI

Posted By:   ngem_rafaral  
Posted On:   Friday, April 12, 2002 05:02 AM

set your java.security.policy file. This works


grant{
permission java.net.SocketPermission "*:1024-65535", "connect,accept";
};




run like this java -Djava.securiy.policy=myPolicyFile myRmiClass


it allows every non-reserved ports on every hosts.

if it doesn't work see if rmiregistry is running.
About | Sitemap | Contact