Connection refused
Hi,
first of all I'm sorry for asking another question on the exception
Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
but until now i read several hours on many tutorials and forums and i tested many variants but it still doesn't work.
Server:
System.setSecurityManager(new RMISecurityManager());
Naming.rebind("correlator",new Correlator());
start server:
java -Djava.security.policy=java.policy -Djava.rmi.server.codebase=file:/c:\workspace\Correlator/ -Djava.rmi.server.hostname=localhost de.protone.Correlator
in the hostname-property i tried several things, for example localhost, ip-address, full host name, 127.0.0.1
Client:
System.setSecurityManager(new RMISecurityManager());
CorrelatorImpl impl = (CorrelatorImpl)Naming.lookup("correlator");
impl.setRuleSet(sActlFile);
java -Djava.rmi.server.codebase=file:/c:\workspace\Correlator/
-Djava.security.policy=java.policy de.protone.RuleSetTer
in the Naming.lookup() function i tried for example rmi://localhost:1099/correlator, correlator, //localhost:1099/correlator,...
but no combination works for me
my policy file is filled with:
grant {
permission java.security.AllPermission;
};
it's the file from the jre\lib\security-path
(could it be a path-problem with the policy-file at the client-side? where has this file to be?)
thanks a lot for help

