<!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;">
    JNDI lookup issue - EJB not bound
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/gurmat">Gurmat Bhatia</a> in <i>JNDI and Naming</i> - <a href="http://community.jboss.org/message/576688#576688">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 All,</p><p>I am new to Jboss...We are migrating from WAS4 to JBoss4.3 and are running into issues for EJB.</p><p>For all the EJBs, it is giving below exception:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2010-12-17 09:52:29,008 ERROR [STDERR] javax.naming.NameNotFoundException: ejb not bound<br/>2010-12-17 09:52:29,009 ERROR [STDERR]&#160; at org.jnp.server.NamingServer.getBinding(NamingServer.java:581)<br/>2010-12-17 09:52:29,009 ERROR [STDERR]&#160; at org.jnp.server.NamingServer.getBinding(NamingServer.java:589)<br/>2010-12-17 09:52:29,009 ERROR [STDERR]&#160; at org.jnp.server.NamingServer.getObject(NamingServer.java:595)<br/>2010-12-17 09:52:29,009 ERROR [STDERR]&#160; at org.jnp.server.NamingServer.lookup(NamingServer.java:313)<br/>2010-12-17 09:52:29,009 ERROR [STDERR]&#160; at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)<br/>2010-12-17 09:52:29,009 ERROR [STDERR]&#160; at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)<br/>2010-12-17 09:52:29,009 ERROR [STDERR]&#160; at javax.naming.InitialContext.lookup(InitialContext.java:351)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Below is the JNDI look up code</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt;"><p align="left">InitialContext ic =</p><p align="left"><strong><span style="color: #7f0055; font-size: 10pt; ">new</span><span style="font-size: 10pt;"> InitialContext();</span><span style="font-size: 10pt;"><p>VendorOSTrackingHome home = (VendorOSTrackingHome) ic.lookup(</p><p><span style="color: #2a00ff; font-size: 10pt; ">"ejb/BulkLoaderApp/VendorOsTracking"</span><span style="font-size: 10pt;">);</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>JBoss-web.xml</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #008080; font-size: 10pt;"><span style=": ; color: #008080; font-size: 2; font-color: #008080; "><p align="left">&lt;?</p></span><span style="font-color: #008080; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="color: #3f7f7f; font-size: 10pt; ">xml</span><span style="color: #000000; font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">version</span><span style="color: #000000; font-size: 10pt;">=</span><em style=": ; color: #2a00ff; font-size: 10pt; ">"1.0"</em><span style="color: #000000; font-size: 10pt;"> </span><span style="color: #7f007f; font-size: 10pt; ">encoding</span><span style="color: #000000; font-size: 10pt;">=</span><em style=": ; color: #2a00ff; font-size: 10pt; ">"UTF-8"</em><p align="left"><span style="color: #008080; font-size: 10pt;"><span style="color: #008080; font-size: 10pt;">?&gt;<span style=": ; font-size: 2; font-color: #008080; "><p align="left">&lt;</p></span></span><span style="font-color: #008080; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="color: #3f7f7f; font-size: 10pt; ">jboss-web</span><p align="left"><span style="color: #008080; font-size: 10pt; ">&gt;</span></p><span style=": ; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #008080; font-size: 10pt;"><span style=": ; color: #008080; font-size: 2; font-color: #008080; "><p align="left">&lt;</p></span><span style="font-color: #008080; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="color: #3f7f7f; font-size: 10pt; ">ejb-ref</span><p align="left"><span style="color: #008080; font-size: 10pt; ">&gt;</span></p><span style=": ; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="color: #008080; font-size: 10pt; ">&lt;</span><span style="color: #3f7f7f; font-size: 10pt; ">ejb-ref-name</span><span style="color: #008080; font-size: 10pt; ">&gt;</span><span style="font-size: 10pt; text-decoration: underline; ">ejb</span>/BulkLoaderApp/VendorOsTracking<span style="color: #008080; font-size: 10pt; ">&lt;/</span><span style="color: #3f7f7f; font-size: 10pt; ">ejb-ref-name</span><p align="left"><span style="color: #008080; font-size: 10pt; ">&gt;</span></p><span style=": ; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="color: #008080; font-size: 10pt; ">&lt;</span><span style="color: #3f7f7f; font-size: 10pt; ">ejb-link</span><span style="color: #008080; font-size: 10pt; ">&gt;</span><span style="font-size: 10pt;">VendorOsTrackingEJB.jar#VendorOsTracking</span><span style="color: #008080; font-size: 10pt; ">&lt;/</span><span style="color: #3f7f7f; font-size: 10pt; ">ejb-link</span><p align="left"><span style="color: #008080; font-size: 10pt; ">&gt;</span></p><span style=": ; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="color: #008080; font-size: 10pt; ">&lt;</span><span style="color: #3f7f7f; font-size: 10pt; ">jndi-name</span><span style="color: #008080; font-size: 10pt; ">&gt;</span><span style="font-size: 10pt;">VendorOsTracking</span><span style="color: #008080; font-size: 10pt; ">&lt;/</span><span style="color: #3f7f7f; font-size: 10pt; ">jndi-name</span><p align="left"><span style="color: #008080; font-size: 10pt;"><span style="color: #008080; font-size: 10pt;">&gt;<span style=": ; font-size: 2; font-color: #008080; "><p align="left">&lt;/</p></span></span><span style="font-color: #008080; font-size: 2; "><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span></p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="color: #3f7f7f; font-size: 10pt; ">ejb-ref</span><p align="left"><span style="color: #008080; font-size: 10pt; ">&gt;</span></p><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span><span style="color: #008080; font-size: 10pt;"><span style=": ; color: #008080; font-size: 2; font-color: #008080; "><p>&lt;/</p></span><span style="font-color: #008080; font-size: 2; "><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></span></span><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><span style="color: #3f7f7f; font-size: 10pt; ">jboss-web</span><p><span style="color: #008080; font-size: 10pt; ">&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p><span style="color: #008080; font-size: 10pt; "><h2> +- UserTransaction[link -&gt; UserTransaction] (class: javax.naming.LinkRef)<br/>&#160; +- env (class: org.jnp.interfaces.NamingContext)<br/>&#160; |&#160;&#160; +- jdbc (class: org.jnp.interfaces.NamingContext)<br/>&#160; |&#160;&#160; |&#160;&#160; +- Profile[link -&gt; java:Profile] (class: javax.naming.LinkRef)<br/>&#160; |&#160;&#160; +- ejb (class: org.jnp.interfaces.NamingContext)<br/>&#160; |&#160;&#160; |&#160;&#160; +- BulkLoaderApp (class: org.jnp.interfaces.NamingContext)<br/>&#160; |&#160;&#160; |&#160;&#160; |&#160;&#160; +- VendorOsTracking[link -&gt; VendorOsTracking] (class: javax.naming.LinkRef)<br/>&#160; |&#160;&#160; +- security (class: org.jnp.interfaces.NamingContext)<br/>&#160; |&#160;&#160; |&#160;&#160; +- realmMapping[link -&gt; java:/jaas/customRealm] (class: javax.naming.LinkRef)<br/>&#160; |&#160;&#160; |&#160;&#160; +- subject[link -&gt; java:/jaas/customRealm/subject] (class: javax.naming.LinkRef)<br/>&#160; |&#160;&#160; |&#160;&#160; +- securityMgr[link -&gt; java:/jaas/customRealm] (class: javax.naming.LinkRef)<br/>&#160; |&#160;&#160; |&#160;&#160; +- security-domain[link -&gt; java:/jaas/customRealm] (class: javax.naming.LinkRef)</h2><p>I am really stuck on this...Can anyone please help us out in this??</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks,</p><p>Gurmat</p></span></p><p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></p><p align="left"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-size: 10pt;"><span id="_marker"> </span></span>&#160;</p></p></span></strong></p></span></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/576688#576688">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>