This seems to be a network problem. Does jndi.properties point to the right server, can this server be accessed (firewall etc.), can you ping and tracert it ?
I doesn't make any sense with respect to different server configurations because the relevant parts are the same (except you changed them).
Also check that you set RmiPort when behind a firewall (and punch a whole in the firewall as well) and set the BindAddress if you have a multi-homed server.
you may need something like this (at the start of your application)
The java.naming.provider.url parameter was commented out in jndi.properties. After setting it to jnp://localhost:1099 my app runs with both configurations, 'all' and 'default'.
Thanks so far, but allow 2 more questions:
- what is the default for java.naming.provider.url ?
- why does a JNDI connect/lookup succeed without this parameter with config 'all', but fail with 'all' ?