"java.lang.UnsupportedOperationException" Thrown when the "role.mapping.dynamic" Property is Defined in jazn.xml (Doc ID 727388.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version: 10.1.2.0.0
This problem can occur on any platform.

Symptoms

To use the Custom Login Module for Authentication in a J2EE Application, there is a need to update the OC4J's configuration file jazn.xml under folder  $ORACLE_HOME/j2ee/<oc4j_container>/config/.

In the jazn.xml file, the setting role.mapping.dynamic is set to "true".

<jazn location="./jazn-data.xml" provider="XML">
<property name="custom.loginmodule.provider" value="true"/>
<property name="role.mapping.dynamic" value="true"/>
</jazn>


This setting will show the following error when restarting Oracle Application Server:

java.lang.UnsupportedOperationException
08/07/09 16:27:08 at oracle.security.jazn.oc4j.AbstractUser.getPassword(Unknown Source)
08/07/09 16:27:08 at oracle.security.jazn.oc4j.FilterUser.getPassword(Unknown Source)
08/07/09 16:27:08 at com.evermind.security.SecuritySensitive.lookup(SecuritySensitive.java:248)
08/07/09 16:27:08 at com.evermind.security.SecuritySensitive.lookup(SecuritySensitive.java:228)
08/07/09 16:27:08 at com.evermind.security.SecuritySensitive.decode(SecuritySensitive.java:123)
08/07/09 16:27:08 at com.evermind.security.SecuritySensitive.decode(SecuritySensitive.java:140)
08/07/09 16:27:08 at com.evermind.server.DataSourceConfig.getPassword(DataSourceConfig.java:549)
08/07/09 16:27:08 at com.evermind.server.Application.initDataSource(Application.java:1605)
08/07/09 16:27:08 at com.evermind.server.Application.initDataSources(Application.java:2000)
08/07/09 16:27:08 at com.evermind.server.Application.preInit(Application.java:544)
08/07/09 16:27:08 at com.evermind.server.Application.setConfig(Application.java:171)
08/07/09 16:27:08 at
com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:2020)
08/07/09 16:27:08 at
com.evermind.server.ApplicationServer.initializeApplications(ApplicationServer.java:1956)
08/07/09 16:27:08 at
com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1517)
08/07/09 16:27:08 at
com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
08/07/09 16:27:08 at java.lang.Thread.run(Thread.java:534)
08/07/09 16:27:08 Exception occured during Applications initialization: null
08/07/09 16:27:09 Error initializing site OracleAS Java Web Site: No application named '<application_name>'
found in the server
Error initializing server: XMLApplicationServerConfig::initHttp(server), cannot find application
instance for <oc4j_instance>

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