Hi Peter,
Sorry for being late with 4 years with this replay, but I hope it can help others too:
In my case I have put by mistake in the Embedded Jboss\jndi.properties additional line with jndi address and port.
The file has to be as is : only
# DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING
#
java.naming.factory.initial=org.jboss.naming.JBossRemotingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces