Do you have the JBOSS/bin/client/jboss-client.jar in your classpath?
Also add env.put("jboss.naming.client.ejb.context", true) to your environment.
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community