try localhost as provider url not 127.0.0.1
That's what I tried first with no success!
I've got "jnp://host:port" ... don't know if that makes a difference (it doesn't if jnp is the default protocol, but I don't know about that)
Tried that as well!
If you're running under Unix, use the following to see if the JBoss naming service is really up and running :
lsof -i | grep 1099
Possible connection problems could be,
- jboss naming didn't start successfully, because something else is already on the default port 1099
- you can't access the port 1099 on the intended machine because there is a firewall or some other access restriction
It was a wrongly secified property in the InitialContext's environemnt. Should have been
java.naming.provider.url not java.naming.factory.url
or better still
which would have avoided all the problems in the first place.
Thanks to all.