My Oracle Support Banner

Policies Are Wiped After Managed Server Restart (Doc ID 2086220.1)

Last updated on NOVEMBER 21, 2023

Applies to:

Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.


The WebService Policies are being deleted after a restart. This is happening in the managed servers in WebCenter Portal environment. For communication between the WebCenter Portal and Collaboration managed servers, web service policies need to be applied. The steps are in the installation documentation.

NOTE: The WebLogic Server names and port numbers; WebService application/package/schema names; other attributes used in this article represent a fictitious sample names that made up as example. Any similarity to actual code, is purely coincidental and not intended in any other manner.


After restarting the managed servers, the policies attached are no longer seen. Further investigation showed the following:


The managed servers start fine. The first managed server will work fine as far as communication with other services is concerned. It is the second managed server to be restarted that loses the WS policy

OS: Red Hat Enterprise 4

1) Ensure that the WC_Spaces and WC_Collaboration managed servers are running.

2) Run the following WLST command to attach an OWSM policy on the Spaces Web service endpoint:

  attachWebServicePolicy(application='webcenter', moduleName='webcenter', moduleType='web', serviceName='SpacesWebService',subjectName='SpacesWebServiceSoapHttpPort', policyURI='oracle/wss11_saml_token_with_message_protection_service_policy')

3) Run the following WLST command to attach an OWSM policy on the Discussions Web service endpoint:

  attachWebServicePolicy(application='owc_discussions', moduleName='owc_discussions', moduleType='web', serviceName='OWCDiscussionsServiceAuthenticated',subjectName='OWCDiscussionsServiceAuthenticated', policyURI='oracle/wss10_saml_token_service_policy')

4)Restart the WC_Spaces and WC_Collaboration managed servers.

Then check each managed server if it has the policy:

wls:/Domain_Name/serverConfig> listWebServicePolicies(application='/Domain_Name/WC_Spaces1/webcenter', moduleName='webcenter', moduleType='web', serviceName='SpacesWebService', subjectName='SpacesWebServiceSoapHttpPort')
SpacesWebServiceSoapHttpPort :
No policies attached; endpoint is not secure.

wls:/Domain_Name/serverConfig> listWebServicePolicies(application='/Domain_Name/WC_Collaboration1/owc_discussions', moduleName='owc_discussions', moduleType='web', serviceName='OWCDiscussionsServiceAuthenticated', subjectName='OWCDiscussionsServiceAuthenticated')
OWCDiscussionsServiceAuthenticated :
security : oracle/wss10_saml_token_service_policy, enabled=true
Attached policy or policies are valid; endpoint is secure.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.