After you have deployed and started your application on server there should be a way to checkup the JNDI tree on your specific server console. Check that before even before you run your client code.your JNDI tree should show up in the JNDI tree on the server console.