IBM Support

Getting javax.naming.NameNotFoundException when use direct lookup of an EJB

Troubleshooting


Problem

Using direct lookup to locate a EJB whose JNDI name is "ecourier.local.Account". Getting the javax.naming.NameNotFoundException, and here is a piece of the logs (whole trace file attached): [11/3/05 18:15:53:093 EST] 0000002a Helpers 3 jndiNamingException com.ibm.ws.naming.jndicos.CNContextImpl lookupExt wccpc101Node01Cell/nodes/wccpc101Node01/servers/server1 ecourier.local.Account "" javax.naming.NameNotFoundException: Context: wccpc101Node01Cell/nodes/wccpc101Node01/servers/server1, name: ecourier.local.Account: First component in name ecourier.local.Account not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0 at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:542) at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2213) at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source) at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:4043) at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1746) at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1707) at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1412) at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1290) at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144) at javax.naming.InitialContext.lookup(InitialContext.java:361) at ejbs.RemoteSessionBean.remoteBusinessMethod(RemoteSessionBean.java:88) at ejbs.EJSRemoteStatelessRemoteSession_d360130c.remoteBusinessMethod(EJSRemoteStatelessRemoteSession_d360130c.java:40) at ejbs._RemoteSession_Stub.remoteBusinessMethod(_RemoteSession_Stub.java:255) at TestServlet.doGet(TestServlet.java:74) ...

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"JNDI\/Naming","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5.5;8.0;7.0","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB77","label":"Automation Platform"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
03 March 2025

UID

swg21233726