So it turned out the problem was there was a jndi.properties in my classpath. Which set localhost. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252135#4252135 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252135