javax.naming.NameNotFoundException When Looking Up a WLS JNDI Name
(Doc ID 849448.1)
Last updated on APRIL 06, 2018
Applies to:Oracle Containers for J2EE - Version: 10.1.3.3.0
Information in this document applies to any platform.
The same J2EE application is deployed into 10.1.3 OC4J sucesfully. However, when executing the JNDI lookup with mySampleEJB#sampleEjbProject.SessionEJB' name, it fails with the exception :
javax.naming.NameNotFoundException: mySampleEJB#sampleEjbProject.SessionEJB not found
The goal of this note is to show how to avoid this exception by having common code for both WLS and OC4J.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!