My Oracle Support Banner

AuthenticationException: Not Authorized When Calling EJB With DataSourceUserManager (Doc ID 1373033.1)

Last updated on JUNE 19, 2019

Applies to:

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


An application which has EJBs is configured with the DataSourceUserManager

<user-manager class="com.evermind.sql.DataSourceUserManager">
    <property name="dataSource" value="jdbc/XELocalDS" />
    <property name="table" value="j2ee_users" />
    <property name="usernameField" value="username" />
    <property name="passwordField" value="password" />
    <property name="groupMembershipTableName" value="j2ee_usergroup" />
    <property name="groupMembershipGroupFieldName" value="groupname" />
    <property name="groupMembershipUserNameFieldName" value="username" />

but any attempt to access/call/lookup an EJB in it from an EJB client fails with:

javax.naming.AuthenticationException: Not authorized; nested exception is:
    javax.naming.AuthenticationException: Not authorized)
  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(
      at javax.naming.InitialContext.lookup(


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

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