<!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="https://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;">
    Re: PortableRemoteObject.narrow() returns null
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/bclara">Brian Lara</a> in <i>JNDI and Naming</i> - <a href="https://community.jboss.org/message/766729#766729">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Yes, that is exactly what I have.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Below are logs from EJB server showing successful deployment, could verify same in JNDIView MBean</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2012-10-18 10:08:38,986 INFO&#160; [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] (main) Bound EJB LocalHome 'VehicleInterface' to jndi 'ejb/com/vehicle/ejb/VehicleInterfaceLocalHome'</p><p>2012-10-18 10:08:39,127 INFO&#160; [org.jboss.proxy.ejb.IORFactory.ejb/com/vehicle/ejb/VehicleInterfaceHome] (main) EJBHome reference for ejb/com/vehicle/ejb/VehicleInterfaceHome:</p><p>IOR:000000000000003C524D493A636F6D2E6F6E65736869656C642E6461702E656A622E446170496E74657266616365486F6D653A3030303030303030303030303030303000000000020000000000000108000102000000000A3132372E302E302E31000E2C000000444A426F73732F454A42486F6D652625656A622625636F6D26256F6E65736869656C6426256461702625656A622625446170496E74657266616365486F6D652FACED000570000000050000000000000008000000004A414300000000010000001C0000000000010001000000010501000100010109000000010501000100000019000000510000000000000049687474703A2F2F3132372E302E302E313A383138332F576562434C5B656A622F636F6D2F6F6E65736869656C642F6461702F656A622F446170496E74657266616365486F6D655D2F000000000000002000000004000000000000001F0000000400000003000000010000007C000000000000000300000019000000510000000000000049687474703A2F2F3132372E302E302E313A383138332F576562434C5B656A622F636F6D2F6F6E65736869656C642F6461702F656A622F446170496E74657266616365486F6D655D2F000000000000002000000004000000000000001F0000000400000003</p><p>2012-10-18 10:08:39,127 INFO&#160; [org.jboss.proxy.ejb.IORFactory.ejb/com/vehicle/ejb/VehicleInterfaceHome] (main) Home IOR for VehicleInterface bound to iiop/ejb/com/vehicle/ejb/VehicleInterfaceHome in JNP naming service</p><p>2012-10-18 10:08:39,330 INFO&#160; [org.jboss.proxy.ejb.IORFactory.ejb/com/vehicle/ejb/VehicleInterfaceHome] (main) Home IOR for VehicleInterface bound to ejb/com/vehicle/ejb/VehicleInterfaceHome in CORBA naming service</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When I do lookup on client side, i get object of CORBAObjectImpl but narrow returns null.</p><p>I also tried doing lookup from java main test method and also get null after doing PortableRemoteObject.narrow()</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 see 4-5 posts on this very issue but nowhere has anymore mentioned the resolution which seems suprising to me.</p><p>Do we need to decorate EJB client with some JBoss descriptor file or setup some security or enable dynamic proxy?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Is there a workaround to generate static stubs for RMI/IIOP somehow because when I deploy my Websphere client jar (with stubs in it), narrow works fine and gives me Home reference back.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/766729#766729">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JNDI and Naming at <a href="https://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>