My Oracle Support Banner

java.lang.RuntimeException: javax.naming.NameNotFoundException: While trying to lookup 'ejb.xxxxxxxxxxxxx' didn't find subcontext 'ejb'. Resolved ''; remaining name 'ejb/xxxxxxxxxxxxx' (Doc ID 1371768.1)

Last updated on OCTOBER 10, 2018

Applies to:

Oracle WebLogic Server - Version 10.3.4 and later
Information in this document applies to any platform.
***Checked for relevance on 19-Nov-2015***

Symptoms

When using SCA with the weblogic-sca-1.1.war shared library, the following error can occur on server restart:

<Sep 30, 2011 12:16:59 AM IST> <Warning> <HTTP> <BEA-101162> <User defined listener weblogic.sca.container.WlsScaContextListener failed: java.lang.RuntimeException: javax.naming.NameNotFoundException: While trying to lookup 'ejb.xxxxxxxxxxxxx' didn't find subcontext 'ejb'. Resolved ''; remaining name 'ejb/xxxxxxxxxxxxx'.
java.lang.RuntimeException: javax.naming.NameNotFoundException: While trying to lookup 'ejb.xxxxxxxxxxxxx' didn't find subcontext 'ejb'. Resolved ''; remaining name 'ejb/xxxxxxxxxxxxx'
at weblogic.sca.container.WlsScaContextListener.contextInitialized(WlsScaContextListener.java:45)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
Truncated. see log file for complete stacktrace
Caused By: javax.naming.NameNotFoundException: While trying to lookup 'ejb.xxxxxxxxxxxxx' didn't find subcontext 'ejb'. Resolved ''; remaining name 'ejb/xxxxxxxxxxxxx'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
at weblogic.jndi.internal.BasicNamingNode.lookupHereOrCreate(BasicNamingNode.java:270)
at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:320)
Truncated. see log file for complete stacktrace

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
References


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