Failed To Load Work Manager With SIP Message Logging Enabled: javax.naming.NameNotFoundException (Doc ID 1195083.1)

Last updated on SEPTEMBER 13, 2016

Applies to:

Oracle Communications Converged Application Server - Version 4.0.0 to 5.0.0 [Release 4.0.0 to 5.0]
Information in this document applies to any platform.
***Checked for relevance on 02-Apr-2013***

Symptoms

With SIP message logging servlet deployed, which implements com.bea.wcp.sip.engine.server.MessageListener interface, after invoking SipServletResponse.send(), javax.naming.NameNotFoundException is thrown when calling InitialContext.lookup("java:comp/env/wm/MyWorkManager").

  InitialContext.lookup() should use com.bea.wcp.sip.naming.SipJavaURLContext as context.
While after invoking SipServletResponse.send(), InitialContext.lookup() is using weblogic.jndi.factories.java.javaURLContextFactory$JavaURLContext.

The full error stack looks like below:

javax.naming.NameNotFoundException: remaining name: env
at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:40)
at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:44)
at weblogic.j2eeclient.SimpleContext.listBindings(SimpleContext.java:169)
at weblogic.j2eeclient.SimpleContext.listBindings(SimpleContext.java:169)
at weblogic.j2eeclient.SimpleContext.listBindings(SimpleContext.java:173)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.listBindings(ReadOnlyContextWrapper.java:87)
at weblogic.jndi.internal.AbstractURLContext.listBindings(AbstractURLContext.java:120)
at javax.naming.InitialContext.listBindings(InitialContext.java:447)
at com.vz.sc.test.ccl.testapp.TestApp.onCallOffered(TestApp.java:74)
at com.vz.sc.ccl.Command.onInvite(Command.java:102)
at com.vz.sc.ccl.SCSipServlet.doInvite(SCSipServlet.java:101)
at javax.servlet.sip.SipServlet.doRequest(Unknown Source)
at javax.servlet.sip.SipServlet.service(Unknown Source)
at com.bea.wcp.sip.engine.server.CanaryServlet.forwardFromSip(CanaryServlet.java:576)
at com.bea.wcp.sip.engine.server.CanaryServlet.access$500(CanaryServlet.java:91)
at com.bea.wcp.sip.engine.server.CanaryServlet$PrivilegedForwardAction.run(CanaryServlet.java:825)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at com.bea.wcp.sip.engine.server.CanaryServlet.forward(CanaryServlet.java:777)
at com.bea.wcp.sip.engine.server.ServletMappingManager.receiveInitialRequest(ServletMappingManager.java:533)
at com.bea.wcp.sip.engine.server.ServletMappingManager.dispatchRequest(ServletMappingManager.java:501)
at com.bea.wcp.sip.engine.server.FilterContext.dispatchMessage(FilterContext.java:134)
at com.bea.wcp.sip.engine.server.FilterContext.filter(FilterContext.java:175)
at com.bea.wcp.sip.engine.server.FilterContext.filterNext(FilterContext.java:204)
at com.bea.wcp.sip.engine.server.MessageHeaderFilterManager.filter(MessageHeaderFilterManager.java:34)
at com.bea.wcp.sip.engine.server.FilterContext.filter(FilterContext.java:183)
at com.bea.wcp.sip.engine.server.FilterContext.filterNext(FilterContext.java:204)
at com.bea.wcp.sip.security.internal.SecurityManagerFilter$RunAsAction.run(SecurityManagerFilter.java:150)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at com.bea.wcp.sip.security.internal.SecurityManagerFilter.filter(SecurityManagerFilter.java:95)
at com.bea.wcp.sip.engine.server.FilterContext.filter(FilterContext.java:183)
at com.bea.wcp.sip.engine.server.TransactionManager.filterMessage(TransactionManager.java:793)
at com.bea.wcp.sip.engine.server.TransactionManager.filterRequest(TransactionManager.java:1927)
at com.bea.wcp.sip.engine.server.TransactionManager.receiveInitialRequest(TransactionManager.java:1371)
at com.bea.wcp.sip.engine.server.TransactionManager.receiveRequest(TransactionManager.java:895)
at com.bea.wcp.sip.engine.server.TransactionManager.receiveMessage(TransactionManager.java:801)
at com.bea.wcp.sip.engine.server.MessageHandler$MessageQueue.processMessages(MessageHandler.java:590)
at com.bea.wcp.sip.engine.server.MessageHandler$MessageQueue.processMessages(MessageHandler.java:523)
at com.bea.wcp.sip.engine.server.MessageHandler$MessageQueue.checkMessages(MessageHandler.java:487)
at com.bea.wcp.sip.engine.server.MessageHandler$MessageQueue.addMessage(MessageHandler.java:463)
at com.bea.wcp.sip.engine.server.MessageHandler.receiveMessage(MessageHandler.java:259)
at com.bea.wcp.sip.engine.connector.transport.AbstractTransport.dispatchOrFwdSidewaysMsg(AbstractTransport.java:175)
at com.bea.wcp.sip.engine.connector.transport.AbstractTransport.dispatch(AbstractTransport.java:157)
at com.bea.wcp.sip.engine.connector.transport.UdpTransportModule$UdpWorker.run(UdpTransportModule.java:750)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms