Right, the issue is that we need to pull over “com.sun.jndi.cosnaming.CNCtxFactory” into our openjdk subsystem, otherwise that class will see the wrong corba impl.On Feb 15, 2016, at 6:44 AM, Tom Jenkinson <tom.jenkinson@redhat.com> wrote:It seems that https://docs.jboss.org/jbossas/javadoc/7.1.2.Final/org/jboss/com/sun/corba/se/impl/corba/CORBAObjectImpl.html does implement http://docs.oracle.com/javase/7/docs/api/org/omg/CORBA/Object.html so my guess is that the org.omg.CORBA classes are coming out of a different classloader to the com.sun.corba.se.impl.corba ones._______________________________________________On 15 February 2016 at 12:14, Michael Musgrove <mmusgrov@redhat.com> wrote:Thanks,That has got me much further. Now I can successfully lookup the EJB that is on WLS but when I narrow (using PortableRemoteObject.narrow) the object I get java.lang.ClassCastException: com.sun.corba.se.impl.corba.CORBAObjectImpl cannot be cast to org.omg.CORBA.ObjectI guess that is a different issue but I cannot figure out how to proceed - any ideas?On Mon, Feb 15, 2016 at 9:50 AM, Stuart Douglas <stuart.w.douglas@gmail.com> wrote:Did you try adding com.sun.corba.se.internal.Interceptors to the jboss-deployment-structure.xml file?StuartOn Mon, 15 Feb 2016 at 20:27 Michael Musgrove <mmusgrov@redhat.com> wrote:Wait you asked for the stacktrace when I include the dependency in jboss-deployment-structure.xml, sorry - here is the error when I do that:2016-02-15 09:24:15,210 SEVERE [support.jboss.ejb.session.SessionBean] (p: default-threadpool; w: Idle) WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.cosnaming.CNCtxFactory from classloader ModuleClassLoader for Module "deployment.jboss.eap-1.0-SNAPSHOT.jar:main" from Service Module Loader: javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.cosnaming.CNCtxFactory from classloader ModuleClassLoader for Module "deployment.jboss.eap-1.0-SNAPSHOT.jar:main" from Service Module Loader [Root exception is org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.sun.corba.se.internal.Interceptors.PIORB vmcid: 0x0 minor code: 0 completed: No]at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:118)at org.jboss.as.naming.InitialContext.init(InitialContext.java:99)at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:89)at org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:43)at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)at javax.naming.InitialContext.init(InitialContext.java:244)at javax.naming.InitialContext.<init>(InitialContext.java:216)at support.jboss.ejb.session.SessionBean.getRemoteSession(SessionBean.java:289)at support.jboss.ejb.session.SessionBean.test(SessionBean.java:156)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:497)at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327)at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:44)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.EjbExceptionTransformingInterceptorFactories$1.processInvocation(EjbExceptionTransformingInterceptorFactories.java:75)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.iiop.EjbIIOPTransactionInterceptor.processInvocation(EjbIIOPTransactionInterceptor.java:71)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)at org.jboss.as.ejb3.iiop.EjbCorbaServant._invoke(EjbCorbaServant.java:318)at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:654)at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:205)at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1700)at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1558)at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:940)at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:198)at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:712)at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:471)at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1230)at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:490)at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:519)Caused by: org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation com.sun.corba.se.internal.Interceptors.PIORB vmcid: 0x0 minor code: 0 completed: Noat org.omg.CORBA.ORB.create_impl(ORB.java:311)at org.omg.CORBA.ORB.init(ORB.java:351)at com.sun.jndi.toolkit.corba.CorbaUtils.getOrb(CorbaUtils.java:203)at com.sun.jndi.cosnaming.CNCtx.getDefaultOrb(CNCtx.java:71)at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:235)at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:105)at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:49)at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:114)... 87 moreCaused by: java.lang.ClassCastException: class com.sun.corba.se.internal.Interceptors.PIORBat java.lang.Class.asSubclass(Class.java:3404)at org.omg.CORBA.ORB.create_impl(ORB.java:308)... 94 moreOn Mon, Feb 15, 2016 at 9:23 AM, Michael Musgrove <mmusgrov@redhat.com> wrote:The lookup code is:private ISession getRemoteSession() throws Throwable {final Properties env = new Properties();env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");env.put(Context.PROVIDER_URL, "corbaloc::localhost:7001/NameService");final InitialContext context = new InitialContext(env);final Object iiopObj = context.lookup("SessionBean");return ISessionHome.class.cast(javax.rmi.PortableRemoteObject.narrow(iiopObj, ISessionHome.class)).create();}and the stacktrace is:2016-02-15 09:18:47,720 SEVERE [support.jboss.ejb.session.SessionBean] (p: default-threadpool; w: Idle) WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.cosnaming.CNCtxFactory from classloader ModuleClassLoader for Module "deployment.jboss.eap-1.0-SNAPSHOT.jar:main" from Service Module Loader: javax.naming.NamingException: WFLYNAM0027: Failed instantiate InitialContextFactory com.sun.jndi.cosnaming.CNCtxFactory from classloader ModuleClassLoader for Module "deployment.jboss.eap-1.0-SNAPSHOT.jar:main" from Service Module Loader [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.cosnaming.CNCtxFactory from [Module "deployment.jboss.eap-1.0-SNAPSHOT.jar:main" from Service Module Loader]]at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:118)at org.jboss.as.naming.InitialContext.init(InitialContext.java:99)at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:89)at org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:43)at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)at javax.naming.InitialContext.init(InitialContext.java:244)at javax.naming.InitialContext.<init>(InitialContext.java:216)at support.jboss.ejb.session.SessionBean.getRemoteSession(SessionBean.java:289)at support.jboss.ejb.session.SessionBean.test(SessionBean.java:156)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:497)at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327)at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:44)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.EjbExceptionTransformingInterceptorFactories$1.processInvocation(EjbExceptionTransformingInterceptorFactories.java:75)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.iiop.EjbIIOPTransactionInterceptor.processInvocation(EjbIIOPTransactionInterceptor.java:71)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)at org.jboss.as.ejb3.iiop.EjbCorbaServant._invoke(EjbCorbaServant.java:318)at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:654)at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:205)at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1700)at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1558)at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:940)at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:198)at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:712)at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:471)at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1230)at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:490)at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:519)Caused by: java.lang.ClassNotFoundException: com.sun.jndi.cosnaming.CNCtxFactory from [Module "deployment.jboss.eap-1.0-SNAPSHOT.jar:main" from Service Module Loader]at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)at java.lang.Class.forName0(Native Method)at java.lang.Class.forName(Class.java:348)at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:113)... 87 moreOn Sun, Feb 14, 2016 at 10:46 PM, Stuart Douglas <stuart.w.douglas@gmail.com> wrote:Oops, disregard that, looks like it is actually not defined in any of our pre-defined modules.What is the full stack trace you get when you include the path in your jboss-deployment-structure.xml ? (and what does this file look like)StuartOn Mon, 15 Feb 2016 at 09:44 Stuart Douglas <stuart.w.douglas@gmail.com> wrote:You should be able to use this if you have a dependency on the sun.jdk module.StuartOn Mon, 15 Feb 2016 at 09:41 Michael Musgrove <mmusgrov@redhat.com> wrote:_______________________________________________I am attempting to lookup a remote EJB from WildFly to WLS.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:"ClassNotFoundException: com.sun.jndi.cosnaming.CNCtxFactory"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):"A RuntimeException was generated by the RMI server: weblogic.corba.cos.naming.RootNamingContextImpl.resolve([Lorg.omg.CosNaming.NameComponent"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.[1] row 3 of Table 2-1 in https://docs.oracle.com/cd/E13222_01/wls/docs81/rmi_iiop/rmiiiop2.html--Michael MusgroveTransactions TeamRegistered in England and Wales under Company Registration No. 03798903Directors: Michael Cunningham (US), Paul Hickey (Ireland), Matt Parson(US), Charles Peters (US)Michael Cunningham (US), Charles Peters (US), Matt Parson (US), Michael O'Neill(Ireland)
wildfly-dev mailing list
wildfly-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev--Michael MusgroveTransactions TeamRegistered in England and Wales under Company Registration No. 03798903Directors: Michael Cunningham (US), Paul Hickey (Ireland), Matt Parson(US), Charles Peters (US)Michael Cunningham (US), Charles Peters (US), Matt Parson (US), Michael O'Neill(Ireland)--Michael MusgroveTransactions TeamRegistered in England and Wales under Company Registration No. 03798903Directors: Michael Cunningham (US), Paul Hickey (Ireland), Matt Parson(US), Charles Peters (US)Michael Cunningham (US), Charles Peters (US), Matt Parson (US), Michael O'Neill(Ireland)--Michael MusgroveTransactions TeamRegistered in England and Wales under Company Registration No. 03798903Directors: Michael Cunningham (US), Paul Hickey (Ireland), Matt Parson(US), Charles Peters (US)Michael Cunningham (US), Charles Peters (US), Matt Parson (US), Michael O'Neill(Ireland)
_______________________________________________
wildfly-dev mailing list
wildfly-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev
wildfly-dev mailing list
wildfly-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev_______________________________________________--
Jason T. Greene
WildFly Lead / JBoss EAP Platform Architect
JBoss, a division of Red Hat
wildfly-dev mailing list
wildfly-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev