"Lookup Error: javax.naming.AuthenticationException" After Migration From 9iAS 9.0.4 to 10.1.3.5 (Doc ID 1324643.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version: 10.1.3.5.0 and later   [Release: AS10gR3 and later ]
Information in this document applies to any platform.

Symptoms


EJBs based application works fine on 9ias 9.0.4 is migrated to OracleAS 10.1.3.5.
When trying to access one of the deployed EJB the login fails with the error below:

Connection parameters
Context.INITIAL_CONTEXT_FACTORY=oracle.j2ee.rmi.RMIInitialContextFactory
Context.PROVIDER_URL=opmn:ormi://host:port:oc4jInst/EJBs
Context.SECURITY_PRINCIPAL=user
Context.SECURITY_CREDENTIALS=password

Error
javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Not authorized; nested exception is:
javax.naming.AuthenticationException: Not authorized [Root exception is javax.naming.AuthenticationException: Not authorized]
  at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:72)
  at javax.naming.InitialContext.lookup(InitialContext.java:392)
  ...

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