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

Last updated on JUNE 09, 2016

Applies to:

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

Symptoms

PROBLEM DESCRIPTION
---------------------------------------
The WebService Policies are being deleted after a restart. This is happening in the managed servers in WebCenter Portal 11.1.1.6 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.
After restarting the managed servers, the policies attached are no longer seen. Further investigation showed the following:


WHAT IS WORKING
--------------------------------

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

ENVIRONMENT
------------------------------
FMW 11.1.1.6
OS: Red Hat Enterprise 4
Webcenter/Portal

STEPS
-----------
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:/AusPortalDomain_DEV/serverConfig> listWebServicePolicies(application='/AusPortalDomain_DEV/WC_Spaces1/webcenter', moduleName='webcenter', moduleType='web', serviceName='SpacesWebService', subjectName='SpacesWebServiceSoapHttpPort')
SpacesWebServiceSoapHttpPort :
No policies attached; endpoint is not secure.

wls:/AusPortalDomain_DEV/serverConfig> listWebServicePolicies(application='/AusPortalDomain_DEV/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.


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