Deployment Fails With Error Policy reference already exists (Doc ID 2049928.1)

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'

Symptoms

Successfully generated the WSDL, but deployment fails with the following error:

Exception 'oracle.apps.fnd.isg.mgmt.common.error.ISGManagementException: oracle.apps.fnd.isg.mgmt.common.error.ISGManagementException: oracle.apps.fnd.isg.mgmt.common.error.ISGManagementException: Error encountered in remote method.oracle.apps.fnd.isg.common.error.ISGException : Unable to finish the deploy task oracle.apps.fnd.isg.common.error.ISGException : Error in attaching policy. oracle.apps.fnd.isg.mgmt.common.error.ISGManagementException : javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException: Policy reference already exists. javax.management.RuntimeMBeanException : javax.management.RuntimeMBeanException: Policy reference already exists. javax.management.RuntimeMBeanException : Policy reference already exists.' occurred when attempting to perform 'DEPLOY'. Please view Log/Error details for more information

  

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.util.CompositeUtils.getProxy : Composite Service Mbean Name =oracle.apps.fnd.isg.mgmt:name=CompositeService,type=ISGComposites,agentJndiName=ebstdev,Location=soa_server1
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.

  

NOTES:
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'.  

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