<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    EJB Not Bound error: javax.naming.NamingException
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/rameshwar.khedekar">Rameshwar Khedekar</a> in <i>JNDI and Naming</i> - <a href="http://community.jboss.org/message/576797#576797">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have created my Enterprise App project in eclipse with one web module, three ejb jars(includes multiple ejbs) and other jars.</p><p>I have bundled three ejb jars and other jars in deployment assembly of web module(order.war) and then created Enterprise App Project with that web module(order.war only..)</p><p>I have created ear file by exporting above Enterprsie app and trying to deploy it,</p><p>&#160;&#160;&#160;&#160; I got EJB not bound Error with javax.naming.NamingException.</p><p>&#160;&#160;&#160;&#160; So I have checked with binding names that they are exist in naming space or not, with Context.list() and Context.listBindings() with "java:comp/env/ejb" string paramter. I got number of Names of ejbs that are there in jndi space.</p><p>&#160;&#160;&#160;&#160; But when I am lookin up for each object that is in Name space, i get same excption and finally i get null object.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am printing the log below...</p><p>Note: I am catching NamingException in code, so its not showing the "EJB not bound Error with javax.naming.NamingException".</p><p>But the problem is with ejb not bound only.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2010-12-19 19:35:21,003 INFO&#160; [STDOUT] name_class_pair_element==&gt;IRemoteLicensing<br/>2010-12-19 19:35:21,003 INFO&#160; [STDOUT] name_class_pair_element==&gt;CommonEndUserManager<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] name_class_pair_element==&gt;AvlHandleEjb<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] name_class_pair_element==&gt;CustomerDirectory_ejbHome<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] name_class_pair_element==&gt;AccountManagement_ejbHome<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] name_class_pair_element==&gt;OutsourceAgentManager<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] Naming Exception option 1 with java:comp/env/ejb/IRemoteLicensing<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] Naming Exception option 2 with java:IRemoteLicensing<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] Naming Exception option 3 with java:/IRemoteLicensing<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] Naming Exception option 4 with java:/comp/env/ejb/IRemoteLicensing<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] Naming Exception option 5 with IRemoteLicensing<br/>2010-12-19 19:35:21,004 INFO&#160; [STDOUT] o==========&gt;null<br/>2010-12-19 19:35:21,004 ERROR [STDERR] java.lang.NullPointerException<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.ejb.EJBHomeFactoryImpl_Default._getHome(EJBHomeFactoryImpl_Default.java:108)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.ejb.EJBHomeFactory.getHome(EJBHomeFactory.java:77)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.app.avl.RemoteLicensingProxy.&lt;init&gt;(RemoteLicensingProxy.java:54)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.app.avl.LicensingFactory.createLicensing(LicensingFactory.java:45)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.util.avl.AVLEJBWrapper.&lt;init&gt;(AVLEJBWrapper.java:23)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.util.avl.AVLEJBInitializer.getEJBConnectionFromSession(AVLEJBInitializer.java:114)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.util.avl.AVLEJBInitializer.initializeEJB(AVLEJBInitializer.java:88)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.c2lorder.OrderNewQuoteEvent.fire(OrderNewQuoteEvent.java:77)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.NautilusRequestSupport.processRequest(NautilusRequestSupport.java:62)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.c2lorder.C2LOrderController.processRequest(C2LOrderController.java:54)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.c2lorder.C2LOrderController.doGet(C2LOrderController.java:64)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)<br/>2010-12-19 19:35:21,005 ERROR [STDERR]&#160; at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at java.lang.Thread.run(Thread.java:595)<br/>2010-12-19 19:35:21,006 ERROR [STDERR] java.lang.NullPointerException: Could not create remote reference to the AVL EJB<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at com.ingrammicro.app.avl.RemoteLicensingProxy.&lt;init&gt;(RemoteLicensingProxy.java:65)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at com.ingrammicro.app.avl.LicensingFactory.createLicensing(LicensingFactory.java:45)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.util.avl.AVLEJBWrapper.&lt;init&gt;(AVLEJBWrapper.java:23)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.util.avl.AVLEJBInitializer.getEJBConnectionFromSession(AVLEJBInitializer.java:114)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.util.avl.AVLEJBInitializer.initializeEJB(AVLEJBInitializer.java:88)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.c2lorder.OrderNewQuoteEvent.fire(OrderNewQuoteEvent.java:77)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.NautilusRequestSupport.processRequest(NautilusRequestSupport.java:62)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.c2lorder.C2LOrderController.processRequest(C2LOrderController.java:54)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at com.ingrammicro.nautilus.c2lorder.C2LOrderController.doGet(C2LOrderController.java:64)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br/>2010-12-19 19:35:21,006 ERROR [STDERR]&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<br/>2010-12-19 19:35:21,007 ERROR [STDERR]&#160; at java.lang.Thread.run(Thread.java:595)<br/>2010-12-19 19:35:21,007 ERROR [org.apache.catalina.core.ContainerBase] Servlet.service() for servlet C2LOrderController threw exception<br/>java.lang.NullPointerException<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.ingrammicro.nautilus.util.avl.AVLEJBWrapper.createNewCart(AVLEJBWrapper.java:167)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.ingrammicro.nautilus.c2lorder.OrderNewQuoteEvent.fire(OrderNewQuoteEvent.java:77)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.ingrammicro.nautilus.NautilusRequestSupport.processRequest(NautilusRequestSupport.java:62)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.ingrammicro.nautilus.c2lorder.C2LOrderController.processRequest(C2LOrderController.java:54)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.ingrammicro.nautilus.c2lorder.C2LOrderController.doGet(C2LOrderController.java:64)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:595)<br/>2010-12-19 19:36:15,290 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass &lt;Sun, 19 Dec 2010 19:36:15&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>web.xml contents:</p><p><br/>&lt;ejb-ref id="EjbRef_1050696167183"&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/CustomerDirectory_ejbHome&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;<br/>&#160; &lt;home&gt;com.ingrammicro.beans.customer.CustomerDirectoryHome&lt;/home&gt;<br/>&#160; &lt;remote&gt;com.ingrammicro.beans.customer.CustomerDirectoryObject&lt;/remote&gt;<br/>&#160; &lt;ejb-link&gt;CustomerDirectory&lt;/ejb-link&gt;<br/>&lt;/ejb-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;ejb-ref id="EjbRef_1050696313339"&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/IRemoteLicensing&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;<br/>&#160; &lt;home&gt;com.ingrammicro.app.avl.ejb.IRemoteLicensingHome&lt;/home&gt;<br/>&#160; &lt;remote&gt;com.ingrammicro.app.avl.ejb.IRemoteLicensingBean&lt;/remote&gt;<br/>&#160; &lt;ejb-link&gt;IRemoteLicensing&lt;/ejb-link&gt;<br/>&lt;/ejb-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;ejb-ref id="EjbRef_1050944096042"&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/AccountManagement_ejbHome&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;<br/>&#160; &lt;home&gt;com.ingrammicro.beans.acctmgmt.AccountManagementHome&lt;/home&gt;<br/>&#160; &lt;remote&gt;com.ingrammicro.beans.acctmgmt.AccountManagementObject&lt;/remote&gt;<br/>&#160; &lt;ejb-link&gt;AccountManagement&lt;/ejb-link&gt;<br/>&lt;/ejb-ref&gt;<br/>&lt;ejb-ref id="EjbRef_1080190263908"&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/CommonEndUserManager&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;<br/>&#160; &lt;home&gt;com.ingrammicro.app.avl.enduser.ICommonEndUserManagerHome&lt;/home&gt;<br/>&#160; &lt;remote&gt;com.ingrammicro.app.avl.enduser.ICommonEndUserManager&lt;/remote&gt;<br/>&#160; &lt;ejb-link&gt;CommonEndUserManager&lt;/ejb-link&gt;<br/>&lt;/ejb-ref&gt;<br/>&lt;ejb-ref id="EjbRef_1080005416629"&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/AvlHandleEjb&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;<br/>&#160; &lt;home&gt;com.ingrammicro.app.avl.event.handler.IAVLEventHandlerHome&lt;/home&gt;<br/>&#160; &lt;remote&gt;com.ingrammicro.app.avl.event.handler.IAVLEventHandler&lt;/remote&gt;<br/>&#160; &lt;!-- &lt;ejb-link&gt;AvlHandleEjb.jar#AvlHandleEjb&lt;/ejb-link&gt; --&gt;<br/>&#160; &lt;ejb-link&gt;AvlHandleEjb&lt;/ejb-link&gt;<br/>&lt;/ejb-ref&gt;<br/>&lt;ejb-ref&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/OutsourceAgentManager&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-ref-type&gt;Session&lt;/ejb-ref-type&gt;<br/>&#160; &lt;home&gt;com.ingrammicro.app.avl.outsourceagent.ejb.OutsourceAgentManagerHome&lt;/home&gt;<br/>&#160; &lt;remote&gt;com.ingrammicro.app.avl.outsourceagent.ejb.OutsourceAgentManager&lt;/remote&gt;<br/>&#160; &lt;ejb-link&gt;OutsourceAgentManager&lt;/ejb-link&gt;<br/>&lt;/ejb-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>jboss-web.xml contents:</p><p>&lt;!-- Reference for EJB 1 --&gt;<br/>&lt;ejb-ref&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/CustomerDirectory_ejbHome&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-link&gt;CustomerDirectory&lt;/ejb-link&gt;<br/>&#160; &lt;jndi-name&gt;CustomerDirectory&lt;/jndi-name&gt;<br/>&lt;/ejb-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;!-- Reference for EJB 2 --&gt;<br/>&lt;ejb-ref&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/IRemoteLicensing&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-link&gt;IRemoteLicensing&lt;/ejb-link&gt;<br/>&#160; &lt;jndi-name&gt;IRemoteLicensing&lt;/jndi-name&gt;<br/>&lt;/ejb-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;!-- Reference for EJB 3 --&gt;<br/>&lt;ejb-ref&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/AccountManagement_ejbHome&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-link&gt;AccountManagement&lt;/ejb-link&gt;<br/>&#160; &lt;jndi-name&gt;AccountManagement&lt;/jndi-name&gt;<br/>&lt;/ejb-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;!-- Reference for EJB 4 --&gt;<br/>&lt;ejb-ref&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/CommonEndUserManager&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-link&gt;CommonEndUserManager&lt;/ejb-link&gt;<br/>&#160; &lt;jndi-name&gt;CommonEndUserManager&lt;/jndi-name&gt;<br/>&lt;/ejb-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;!-- Reference for EJB 5 --&gt;<br/>&lt;ejb-ref&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/AvlHandleEjb&lt;/ejb-ref-name&gt;<br/>&#160; &lt;!-- &lt;ejb-link&gt;AvlHandleEjb.jar#AvlHandleEjb&lt;/ejb-link&gt; --&gt;<br/>&#160; &lt;ejb-link&gt;AvlHandleEjb&lt;/ejb-link&gt;<br/>&#160; &lt;jndi-name&gt;AvlHandleEjb&lt;/jndi-name&gt;<br/>&lt;/ejb-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;!-- Testing Additional Reference for EJB 6 --&gt;<br/>&lt;ejb-ref&gt;<br/>&#160; &lt;ejb-ref-name&gt;ejb/OutsourceAgentManager&lt;/ejb-ref-name&gt;<br/>&#160; &lt;ejb-link&gt;OutsourceAgentManager&lt;/ejb-link&gt;<br/>&#160; &lt;jndi-name&gt;OutsourceAgentManager&lt;/jndi-name&gt;<br/>&lt;/ejb-ref&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Created EAR Application with EJB jars and war module ie. Not bundled in deployment assembly of web module.<br/>WE get EJB modules on jmx console. when we deploy ejb jars outside the .war, but we couldnt' get the login page.<br/>Codes in other jars are not reflecting, EJB jars are not able to access the other jars:</p><p>EAR structure:</p><p>/ejb-jars<br/>/other-jars<br/>/web-war</p><p>If we bundled ejb jars inside war we get same ejb not bound error.</p><p>Tried with jboss jnp lookup with following code, but errors remained same:</p><p>Properties jndiProps = new Properties();<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; jndiProps.setProperty(Context.INITIAL_CONTEXT_FACTORY,<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; "org.jnp.interfaces.NamingContextFactory");<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; jndiProps.setProperty(Context.URL_PKG_PREFIXES,<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; "org.jboss.naming:org.jnp.interface");<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; jndiProps.setProperty(Context.PROVIDER_URL, "jnp://imdalapp325:1099");<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Context ctx = new InitialContext(jndiProps);</p><p>String fullName = "java:comp/env/ejb/" + a_homeName;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; LOG.debug( "Looking up " + fullName );<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Object o = ctx.lookup( fullName );</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Please Anyone could reply on this to solve the ejb not bound error..</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Please kindly feel free to&#160; ask any details you want to know to solve above problem..</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanx....</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/576797#576797">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JNDI and Naming at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>