Hi,
I am having serious problem with resolving JNDI lookups on the ejbs in the WSAD 5. Iintitialize the JNDI factory as follows
env.put Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
Than I try to implement the lookup
context = new InitialContext(env);
Object service = context.lookup(jndiName);
The WSAD responding with the following diagnostic
---------------------------------------------------------
[03/08/20 11:05:56:192 GMT+02:00] 6b8684b7 SystemErr R javax.naming.NameNotFoundException: ejb/UsersLocalHome
[03/08/20 11:05:56:192 GMT+02:00] 6b8684b7 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1503)
[03/08/20 11:05:56:192 GMT+02:00] 6b8684b7 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1457)
[03/08/20 11:05:56:192 GMT+02:00] 6b8684b7 SystemErr R at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1167)
[03/08/20 11:05:56:192 GMT+02:00] 6b8684b7 SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
[03/08/20 11:05:56:192 GMT+02:00] 6b8684b7 SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:359)
[03/08/20 11:05:56:192 GMT+02:00] 6b8684b7 SystemErr R at za.co.fnb.util.facade.ServiceLocator.getService(ServiceLocator.java:45)
[03/08/20 11:05:56:192 GMT+02:00] 6b8684b7 SystemErr R at za.co.fnb.util.facade.ServiceLocator.locateService(ServiceLocator.java:56)
[03/08/20 11:05:56:192 GMT+02:00] 6b8684b7 SystemErr R at za.co.fnb.custodyonline.model.control.ejb.UserSessionBean.testEntity(UserSessionBean.java:75)
[03/08/20 11:05:56:202 GMT+02:00] 6b8684b7 SystemErr R at za.co.fnb.custodyonline.model.control.ejb.EJSLocalStatefulUserSession_b39352f4.testEntity(EJSLocalStatefulUserSession_b39352f4.java:41)
[03/08/20 11:05:56:202 GMT+02:00] 6b8684b7 SystemErr R at java.lang.reflect.Method.invoke(Native Method)
---------------------------------------------------------
The server is definitely listening on the port as was tested before.
The JNDI name is correct according to the deployment descriptor and Universal Client, which I can use to access the ejb interfaces.
What is the problem ??
Regards
Leonard