My Oracle Support Banner

Error Appears In Log When Publishing Messages To The SonicQ(Custom Queue) Via Sbconsole (Doc ID 2496786.1)

Last updated on JULY 28, 2021

Applies to:

Oracle Service Bus - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

javax.naming.NoInitialContextException: Cannot instantiate class: com.sonicsw.jndi.mfcontext.MFContextFactory [Root exception is java.lang.ClassNotFoundException: com.sonicsw.jndi.mfcontext.MFContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.(InitialContext.java:216)
at weblogic.deployment.jms.ForeignOpaqueReference.getReferent(ForeignOpaqueReference.java:194)
at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:106)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:1037)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:1009)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:223)
at weblogic.jndi.internal.ServerNamingNode.lookup(ServerNamingNode.java:527)
at weblogic.jndi.internal.RootNamingNode.lookup(RootNamingNode.java:84)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:307)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:435)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at com.bea.wli.sb.transports.util.TransportsUtil$1.run(TransportsUtil.java:92)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:368)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)
at weblogic.security.Security.runAs(Security.java:62)
at com.bea.wli.sb.util.security.SecurityUtils.executeAs(SecurityUtils.java:70)
at com.bea.wli.sb.transports.util.TransportsUtil.jndiLookup(TransportsUtil.java:108)
at com.bea.wli.sb.transports.jms.JmsUtil.jndiLookup(JmsUtil.java:895)
at com.bea.wli.sb.transports.jms.JmsUtil.getConnectionFactory(JmsUtil.java:573)
at com.bea.wli.sb.transports.jms.JmsUtil.isXA(JmsUtil.java:542)
at com.bea.wli.sb.transports.jms.JmsEndPoint.isTransactional(JmsEndPoint.java:391)
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:498)
at com.bea.wli.sb.transports.Util$2.invoke(Util.java:178)
at com.sun.proxy.$Proxy354.isTransactional(Unknown Source)
at com.bea.wli.sb.service.dispatcher.TransportDispatcher.(TransportDispatcher.java:41)
at com.bea.wli.sb.service.dispatcher.BusinessDispatcherTypeDef.computeData(BusinessDispatcherTypeDef.java:53)
at com.bea.wli.sb.service.dispatcher.BusinessDispatcherTypeDef.computeData(BusinessDispatcherTypeDef.java:26)
at com.bea.wli.sb.resources.cache.ExtensibleDerivedTypeDef.computeData(ExtensibleDerivedTypeDef.java:59)
at com.bea.wli.config.derivedcache.impl.DerivedCache.deriveTheValue(DerivedCache.java:554)
at com.bea.wli.config.derivedcache.impl.DerivedCache.get(DerivedCache.java:350)
at com.bea.wli.config.derivedcache.impl.DerivedResourceManagerImpl$1._execute(DerivedResourceManagerImpl.java:369)
at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:235)
at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:225)
at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:170)
at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:150)
at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:238)
at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:185)
at com.bea.wli.config.derivedcache.impl.DerivedResourceManagerImpl.get(DerivedResourceManagerImpl.java:385)
at com.bea.wli.sb.ALSBConfigService.getDerivedValue(ALSBConfigService.java:138)
at com.bea.wli.sb.services.ServicesManager.getDispatcher(ServicesManager.java:109)
at com.bea.wli.sb.test.services.TestClient.getDispatcher(TestClient.java:249)
at com.bea.wli.sb.test.services.TestClient.(TestClient.java:92)
at com.bea.wli.sb.test.services.service.BizTestClient.(BizTestClient.java:52)
at com.bea.wli.sb.test.services.service.BizProcessor.invoke(BizProcessor.java:46)
at com.bea.wli.sb.test.services.AbstractServiceProcessor.invoke(AbstractServiceProcessor.java:482)
at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:184)
at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:172)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invokeInternal(SessionRemoteMethodInvoker.java:54)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:21)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unknown Source)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:645)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:246)
at weblogic.rmi.internal.BasicServerRef$2.run(BasicServerRef.java:534)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:368)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:531)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:138)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
Caused By: java.lang.ClassNotFoundException: com.sonicsw.jndi.mfcontext.MFContextFactory
at com.oracle.classloader.PolicyClassLoader.findClass(PolicyClassLoader.java:398)
at com.oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:371)
at com.oracle.classloader.weblogic.LaunchClassLoader.loadClass(LaunchClassLoader.java:55)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:91)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.(InitialContext.java:216)
at weblogic.deployment.jms.ForeignOpaqueReference.getReferent(ForeignOpaqueReference.java:194)
at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:106)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:1037)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:1009)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:223)
at weblogic.jndi.internal.ServerNamingNode.lookup(ServerNamingNode.java:527)
at weblogic.jndi.internal.RootNamingNode.lookup(RootNamingNode.java:84)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:307)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:435)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at com.bea.wli.sb.transports.util.TransportsUtil$1.run(TransportsUtil.java:92)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:368)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)
at weblogic.security.Security.runAs(Security.java:62)
at com.bea.wli.sb.util.security.SecurityUtils.executeAs(SecurityUtils.java:70)
at com.bea.wli.sb.transports.util.TransportsUtil.jndiLookup(TransportsUtil.java:108)
at com.bea.wli.sb.transports.jms.JmsUtil.jndiLookup(JmsUtil.java:895)
at com.bea.wli.sb.transports.jms.JmsUtil.getConnectionFactory(JmsUtil.java:573)
at com.bea.wli.sb.transports.jms.JmsUtil.isXA(JmsUtil.java:542)
at com.bea.wli.sb.transports.jms.JmsEndPoint.isTransactional(JmsEndPoint.java:391)
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:498)
at com.bea.wli.sb.transports.Util$2.invoke(Util.java:178)
at com.sun.proxy.$Proxy354.isTransactional(Unknown Source)
at com.bea.wli.sb.service.dispatcher.TransportDispatcher.(TransportDispatcher.java:41)
at com.bea.wli.sb.service.dispatcher.BusinessDispatcherTypeDef.computeData(BusinessDispatcherTypeDef.java:53)
at com.bea.wli.sb.service.dispatcher.BusinessDispatcherTypeDef.computeData(BusinessDispatcherTypeDef.java:26)
at com.bea.wli.sb.resources.cache.ExtensibleDerivedTypeDef.computeData(ExtensibleDerivedTypeDef.java:59)
at com.bea.wli.config.derivedcache.impl.DerivedCache.deriveTheValue(DerivedCache.java:554)
at com.bea.wli.config.derivedcache.impl.DerivedCache.get(DerivedCache.java:350)
at com.bea.wli.config.derivedcache.impl.DerivedResourceManagerImpl$1._execute(DerivedResourceManagerImpl.java:369)
at com.bea.wli.config.task.impl.SessionedTask$1.execute(SessionedTask.java:235)
at com.bea.wli.config.transaction.TransactionalTask._doExecute(TransactionalTask.java:225)
at com.bea.wli.config.transaction.TransactionalTask._doExecuteWithRetry(TransactionalTask.java:170)
at com.bea.wli.config.transaction.TransactionalTask.doExecute(TransactionalTask.java:150)
at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:238)
at com.bea.wli.config.task.impl.SessionedTask.doExecute(SessionedTask.java:185)
at com.bea.wli.config.derivedcache.impl.DerivedResourceManagerImpl.get(DerivedResourceManagerImpl.java:385)
at com.bea.wli.sb.ALSBConfigService.getDerivedValue(ALSBConfigService.java:138)
at com.bea.wli.sb.services.ServicesManager.getDispatcher(ServicesManager.java:109)
at com.bea.wli.sb.test.services.TestClient.getDispatcher(TestClient.java:249)
at com.bea.wli.sb.test.services.TestClient.(TestClient.java:92)
at com.bea.wli.sb.test.services.service.BizTestClient.(BizTestClient.java:52)
at com.bea.wli.sb.test.services.service.BizProcessor.invoke(BizProcessor.java:46)
at com.bea.wli.sb.test.services.AbstractServiceProcessor.invoke(AbstractServiceProcessor.java:482)
at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:184)
at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:172)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invokeInternal(SessionRemoteMethodInvoker.java:54)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:21)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unknown Source)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:645)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:246)
at weblogic.rmi.internal.BasicServerRef$2.run(BasicServerRef.java:534)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:368)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:531)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:138)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)
>

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.