Groups > IBM > WebSphere Studio Integration Edition > Re: javax.naming.ConfigurationException:




Re: javax.naming.ConfigurationException:

Re: javax.naming.ConfigurationException:
Thu, 15 Feb 2007 07:01:44 EST
Hi subu_kzy,

As described in the link
http://search.webservertalk.com/printthread.php?s=e724b71f876333fb4e98457e7e9755
8c&threadid=1756423:

"WebSphere defaults the JNDI Provider URL to
"corbaloc:rir:/NameServiceServerRoot" when one isn't provided. The
JNDI provider for DNS expects a dns: style URL so it doesn't work. In your
application environment outside WebSphere the system is using the default
"dns:" URL (which tries to use the DNS servers configured for your
OS).

Try adding the following line
env.put("java.naming.provider.url", "dns:");

It worked for us in websphere 6.1

Rgds

Post Reply
about | contact