Discussions

EJB programming & troubleshooting: javax.naming.NameNotFoundException

  1. javax.naming.NameNotFoundException (2 messages)

    I am getting the below error at runtime. I have JNDI Name , EJB Bean, EJB Local and LocalHome interfaces setup properly in ejb-jar.xml, web.xml, ibm-ejb-jar-bnd.xmi, ibm-web-bnd.xmi. Can you please let anyone know what could be the problem. I am using RAD 7.0 and WAS 6.1. It was working fine before but not working now. The entries are in ibm-ejb-jar-bnd.xmi ejb-jar.xml SearchManager com.walgreens.cca.service.ejb.SearchManagerLocalHome com.walgreens.cca.service.ejb.SearchManagerLocal com.walgreens.cca.service.ejb.SearchManagerBean Stateless Bean ejb/Searcher Session com.walgreens.cca.service.ejb.SearcherLocalHome com.walgreens.cca.service.ejb.SearcherLocal Searcher ibm-web-bnd.xmi web.xml ejb/SearchManager Session com.walgreens.cca.service.ejb.SearchManagerLocalHome com.walgreens.cca.service.ejb.SearchManagerLocal ContactPointEJB.jar#SearchManager The error is: [3/27/08 11:46:48:616 CDT] 0000002d SystemErr R javax.naming.NameNotFoundException: Name "comp/env/ejb/SearchManagerBean" not found in context "java:". [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1095) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:991) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1263) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.ibm.ws.naming.java.javaURLContextImpl.lookup(javaURLContextImpl.java:384) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:204) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:144) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at javax.naming.InitialContext.lookup(InitialContext.java:363) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.walgreens.cca.service.ejb.SearchManagerBeanUtil.lookupHome(SearchManagerBeanUtil.java:12) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.walgreens.cca.service.ejb.SearchManagerBeanUtil.getLocalHome(SearchManagerBeanUtil.java:26) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.walgreens.cca.cp.daos.AbstractSearchDAO.getSearcherHome(AbstractSearchDAO.java:42) [3/27/08 11:46:48:647 CDT] 0000002d SystemErr R at com.walgreens.cca.cp.daos.AbstractSearchDAO.getSearcher(AbstractSearchDAO.java:59) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.walgreens.cca.cp.daos.PersonalInfoSearchDAO.getMemberSearchResult(PersonalInfoSearchDAO.java:41) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.walgreens.cca.cp.requesthandlers.MemberSearchRH.doRequest(MemberSearchRH.java:75) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at walgreens.servlet.WalgreensRequestHandler.processRequest(WalgreensRequestHandler.java:413) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at walgreens.servlet.WalgreensServletProxy.invokeRequest(WalgreensServletProxy.java:1056) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at iw.servlet.HttpServletProxy.doRequest(HttpServletProxy.java:224) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at walgreens.servlet.WalgreensServletProxy.doRequest(WalgreensServletProxy.java:381) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at walgreens.servlet.WalgreensServletProxy.doPost(WalgreensServletProxy.java:366) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136) [3/27/08 11:46:48:663 CDT] 0000002d SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194) [3/27/08 11:46:48:679 CDT] 0000002d SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741) [3/27/08 11:46:48:679 CDT] 0000002d SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863) [3/27/08 11:46:48:679 CDT] 0000002d SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510) Thanks
  2. Re: javax.naming.NameNotFoundException[ Go to top ]

    Check your server configuration if resource settings are defined against jndi name mentioned in web projects
  3. javax.naming.NameNotFoundException[ Go to top ]

    Can you let me know where can I check that. You can see ejb-jar.xml,web.xml,ibm-ejb-bnd.xmi,ibm-web-bnd.xmi in my post and there is no jndi configuaration in resources.xml.