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 file2. Set the credentials in the client code3. Set the principal in the client code.4. Set the security manager to new RMISecurity Manager5. Server machine has .java.policy file which grants java.allPermission