How To

How do I configure AM 6.0.0.x to work with older policy agents (Web 4.x and JEE 3.5.x)?

Last updated Jun 26, 2019

The purpose of this article is to provide information on using Web and JEE policy agents with AM 6. This is a supported combination but requires setting the AM Login URL and AM Logout URL for new installs and new agent profiles. Otherwise, you will encounter "unable to find active OpenAM server URL" errors.

1 reader recommends this article

Configuring AM 6.0.0.x


The experimental REST login mode that was introduced in Web Agents will not work with AM 6.0.0.x. This feature is only officially supported with Web Agents 4.2. If you wish to use this login mode with Web Agents 4.x and AM 6.0.0.x, you must use Web Agents 4.2.

AM 6 introduced profile changes to support Agents 5, which removed the legacy login and logout URL property values required by older policy agents. If you try to use Web policy agents 4.x or JEE policy agents 3.5.x without setting these properties, you may encounter 403 Forbidden responses and will see the following error in the agent  debug.log:

2018-10-11 11:37:26.436 +1000   ERROR [0x7fe007f1c8c0:40] handle_exit(): unable to find active OpenAM server URL

New installs and new profiles

If you have a new install of AM 6 or add a new profile, you must populate the AM Login URL and AM Logout URL using either the console, REST or ssoadm:

  • Console: navigate to: Realms > [Realm Name] > Applications > Agents > [Web or Java] > [Agent Name] > AM Services and specify both the AM Login URL and AM Logout URL including the realm. The URL should be in the correct format, for example:
  • REST: update the com.sun.identity.agents.config.login.url and com.sun.identity.agents.config.logout.url properties as described in How do I create and update an Agent in AM/OpenAM (All versions) using the REST API?
  • ssoadm: enter the following command:
    $ ./ssoadm update-agent -e [realmname] -b [agentname] -u [adminID] -f [passwordfile] -a com.sun.identity.agents.config.login.url[0]=[loginURL] com.sun.identity.agents.config.logout.url[0]=[logoutURL]
    replacing [realmname], [agentname], [adminID], [passwordfile], [loginURL] and [logoutURL] with appropriate values.


If you upgrade to AM 6, existing profiles will not be affected and older policy agents will work without any changes needed. 


Web policy agents 4.x and JEE policy agents 3.5.x are not supported in AM 6.5; you will need to upgrade to the latest Agents 5 release ahead of upgrading to AM 6.5.

See Also

What versions of Policy Agents are compatible with AM/OpenAM?

Best practice for upgrading to AM 6.x

Upgrading AM/OpenAM

Agents and policies in AM/OpenAM

Setup and Maintenance Guide › Creating Agent Profiles

Related Training


Related Issue Tracker IDs

AMAGENTS-2070 (AM_AGENT_REST_LOGIN does not work with AM 6)

OPENAM-13565 (agent 4 ft for ssl requires login.url set in profile when using with AM 6)

OPENAM-12666 (Agent OAuth 2 provider does not support custom login URLs)

Copyright and TrademarksCopyright © 2019 ForgeRock, all rights reserved.