Have you got a jndi.properties on your client's classpath? See the tutorial examples for contents and how to include it.