This is the error that usually occurs when you are trying to run OAM Access SDK in 11g Compatibility Mode, during Access client initialization.
ac = AccessClient.createDefaultInstance(m_configLocation, AccessClient.CompatibilityMode.OAM_11G);
Following is the error that we see :
oracle.security.am.asdk.AccessException: OAMAGENT-02081: No agent key entry found due to JPS config error or wallet file does not exist or contains no agent key.
at oracle.security.am.asdk.impl.Configuration.readAgentKey(Configuration.java:249)
at oracle.security.am.asdk.AccessClient.initialize(AccessClient.java:1365)
at oracle.security.am.asdk.AccessClient.(AccessClient.java:928)
Solution:
Reason 1:
Verify location in jps-config.xml
Usually default location may not work in all application servers. Use below tag if you are facing problem.
<serviceInstances>
<serviceInstance provider="credstoressp" name="credstore">
<property value="C:/Oracle/AccessSDK/config/bootstrap/cwallet.sso" name="location"/>
</serviceInstance>
</serviceInstances>
Reason 2: ac = AccessClient.createDefaultInstance(m_configLocation, AccessClient.CompatibilityMode.OAM_11G);
Following is the error that we see :
oracle.security.am.asdk.AccessException: OAMAGENT-02081: No agent key entry found due to JPS config error or wallet file does not exist or contains no agent key.
at oracle.security.am.asdk.impl.Configuration.readAgentKey(Configuration.java:249)
at oracle.security.am.asdk.AccessClient.initialize(AccessClient.java:1365)
at oracle.security.am.asdk.AccessClient.
Solution:
Reason 1:
Verify location in jps-config.xml
Usually default location may not work in all application servers. Use below tag if you are facing problem.
<serviceInstances>
<serviceInstance provider="credstoressp" name="credstore">
<property value="C:/Oracle/AccessSDK/config/bootstrap/cwallet.sso" name="location"/>
</serviceInstance>
</serviceInstances>
Path for cwallet.sso file in jps-config.xml file should be correct.
<property value="C:/Oracle/AccessSDK/config/bootstrap/cwallet.sso" name="location"/>
</serviceInstance>
Reason 3:
Create a agent name with "webgate11g" and try using exactly same cwallet.sso file
Thanks !!!