Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

javax.naming.ConfigurationException while looking up a bean from a client in WSAD 5

24 views
Skip to first unread message

Ruchi Ahuja

unread,
Mar 5, 2004, 7:19:34 AM3/5/04
to
I have created a client in WSAD 5 for looking up a bean . The client
code is -

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory");
env.put(Context.PROVIDER_URL,"corbaloc:iiop:localhost:2809");
Context initialContext = new InitialContext(env);
Object obj1 = initialContext.lookup("OperatorProfileHome");

However i am getting the following exception. Any idea?????????

javax.naming.ConfigurationException: Malformed provider URL:
corbaloc:iiop:localhost:2809
at com.ibm.ws.naming.util.WsnInitCtxFactory.parseBootstrapURL(WsnInitCtxFactory.java:1422)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:368)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:82)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:324)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:112)
at com.ibm.ejs.ns.jndi.CNInitialContextFactory.getInitialContext(CNInitialContextFactory.java:68)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
at javax.naming.InitialContext.init(InitialContext.java:231)
at javax.naming.InitialContext.<init>(InitialContext.java:207)
at TestClient.<init>(TestClient.java:17)
at TestClient.main(TestClient.java:40)

0 new messages