<div dir="ltr"><div>I am attempting to lookup a remote EJB from WildFly to WLS.</div><div><br></div><div>If I use COSNaming as required by [1] (by setting INITIAL_CONTEXT_FACTORY to "com.sun.jndi.cosnaming.CNCtxFactory") I get the following error on the WildFly end:</div><div> "ClassNotFoundException: com.sun.jndi.cosnaming.CNCtxFactory"</div><div><br></div><div>If I use the default wildfly name service (new InitialContext().lookup("corbaname:iiop:localhost:7001/NameService#SessionBean")) I get the following error on the WLS end (presumably because I am not using CNCtxFactory):</div><div> "A RuntimeException was generated by the RMI server: weblogic.corba.cos.naming.RootNamingContextImpl.resolve([Lorg.omg.CosNaming.NameComponent"</div><div><br></div><div>I did try adding the CosNaming dependency (<path name="com/sun/jndi/cosnaming"/>) to modules/system/layers/base/sun/jdk/main/module.xml or to jboss-deployment-structure.xml in my deployment but that approach did not work.</div><div><br></div><div> </div><div>[1] row 3 of Table 2-1 in <a href="https://docs.oracle.com/cd/E13222_01/wls/docs81/rmi_iiop/rmiiiop2.html" style="border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:orange">https://docs.oracle.com/cd/E13222_01/wls/docs81/rmi_iiop/rmiiiop2.html</a></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Michael Musgrove</div><div>Transactions Team</div><div>e: <a href="mailto:mmusgrov@redhat.com" target="_blank">mmusgrov@redhat.com</a></div><div>t: +44 191 243 0870</div><div><br></div><div>Registered in England and Wales under Company Registration No. 03798903</div><div>Directors: Michael Cunningham (US), Paul Hickey (Ireland), Matt Parson</div><div>(US), Charles Peters (US)</div><div><br></div><div>Michael Cunningham (US), Charles Peters (US), Matt Parson (US), Michael O'Neill(Ireland)</div></div></div>
</div>