That doesn't look like a jndi.properties file. How are you passing those properties? From command line? By the way, java.naming.factory.initial property should be org.jnp.interfaces.NamingContextFactory instead of org.jboss.security.jndi.LoginInitialContextFactory.