The client code runs fine upto lookup, but fails when trying to lookup the jndi name.
i have done the following on the server side
1. Changed the jndi.properties file 2. Set the credentials in the client code 3. Set the principal in the client code. 4. Set the security manager to new RMISecurity Manager 5. Server machine has .java.policy file which grants java.allPermission