Deployment Fails With Error Policy reference already exists
Last updated on OCTOBER 04, 2016
Applies to:Oracle E-Business Suite Integrated SOA Gateway - Version 12.2 to 12.2.4 [Release 12.2]
Information in this document applies to any platform.
Deploying Web Service with uthentication Type 'Username Token'
Successfully generated the WSDL, but deployment fails with the following error:
If backend logging is enabled, the SOALog.log shows more details of the error:
Thu Aug 20 21:50:10 CDT 2015 : Thread-71 : oracle.apps.fnd.isg.common.mgr.LogManager.getLogger : CompositeService : fetchCmpName
Thu Aug 20 21:50:10 CDT 2015 : Thread-71 : oracle.apps.fnd.isg.common.util.CompositeUtils.attachPolicy : Atttaching policy : oracle/wss_username_token_service_policy, to composite : XXXXXXXXXXXXXXX
Thu Aug 20 21:50:10 CDT 2015 : Thread-71 : oracle.apps.fnd.isg.common.mgr.LogManager.getLogger : CompositeService : attachPolicy
Thu Aug 20 21:50:10 CDT 2015 : Thread-71 : oracle.apps.fnd.isg.common.util.CompositeUtils.attachPolicy : Error in attaching policy:javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException: Policy reference already exists.
Thu Aug 20 21:50:10 CDT 2015 : Thread-71 : oracle.apps.fnd.isg.app.common.designer.ServiceDeployer.deployService : Unable to <attach policy>/<assign log level> because some error occurred, Hence Service will be undeployed: Error in attaching policy.
This error is not specific to any one Web Service and the issue occurs for any of the Web Services.
Deployment may have worked before, but now fails with the above error.
Try to un-deploy a previously deployed Web Service and deployment is unsuccessful. However, trying to re-deploy the same Web Service fails with the same error.
One is deploying with Authentication Type of 'Username Token'.
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