Cannot get default-realm value for jazn home instance when running ossoca.jar for WNA setup in HA env

(Doc ID 356027.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle9iAS Single Sign-On - Version: to
This problem can occur on any platform.


This issue happens  when you try to setup Windows Native Authentication for Identity Management.

The AS20G 10.1.2.x Infrastructure Identity Management is setup in a Cluster environement and High Availability environment using a Virtual HostName.

When running ossoca.jar command you would get the following error:

bash-2.03$ pwd
bash-2.03$ java -jar $ORACLE_HOME/sso/lib/ossoca.jar wna -mode sso -oh $ORACLE_HOME -ad_realm RMSC-AD.ORCL -kdc_host_port -verbose
Parameters passed to ssoca : param0:wna param1:-mode param2:sso param3:-oh param4:/u01/app/oracle/product/im2 param5:-ad_realm param6:RMSC-AD.ORCL param7:-kdc_host_port param9:-verbose
Retrieved Single Sign-On hostname as
Retrieved Oracle Internet Directory information as ldap://
Setting up DCM context...
Exception occured.
oracle.ias.sysmgmt.exception.MissingAttributeException: Base Exception:
An expected attribute is missing from an entity.
Please check metadata or code base.
        at oracle.ias.sysmgmt.entity.Entity.getAttribute(Unknown Source)
        at oracle.ias.sysmgmt.entity.Entity.getValue(Unknown Source)
        at oracle.ias.sysmgmt.smi.SMIEntityWrapper.getValue(Unknown Source)
        at oracle.ias.sysmgmt.smi.SMIEntityWrapper.getValueAsString(Unknown Source)
Cannot get default-realm value for jazn home instance.
Please correct the exception reported above and try again.
WNA Config Tool failed.

It is trying to find the default realm from $ORACLE_HOME/j2ee/home/config/jazn.xml. 

When you check the file jazn.xml from the following directory, you will see that it does not have the right entries that would include the realm. 


Here is an example of the existing default jazn.xml.  As a result the ossoca.jar command failed as shown above.

<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
<!DOCTYPE jazn PUBLIC "JAZN Config" "
<jazn provider="XML" location="./jazn-data.xml"/>
<jazn provider="LDAP" location="ldap://" />


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