Monday, September 19, 2016

oracle.webcenter.collab.share.LoginFailedException: failure to authenticate the user weblogic, due to: Unexpected error occurred, due to : oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client received SOAP Fault from server : SOAP must understand error. Server could not understand one or more SOAP headers : {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security

oracle.webcenter.collab.share.LoginFailedException: failure to authenticate the user weblogic, due to: Unexpected error occurred, due to : oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client received SOAP Fault from server : SOAP must understand error. Server could not understand one or more SOAP headers : {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security

Below error shows the Webcenter Discussion service is not working on Webcenter portal and it is mainly reported on webcenter portal 11.1.1.8.0

Solution is to attach OWSM policy to the Oracle Webcenter Spaces End point so that it can communicate with Discussion services.

To attach the OWSM policy, follow below steps.

Go the oracle_common/common/bin directory to execute wlst commands.

$cd Oracle_Fusion_Middleware_Home/ oracle_common/common/bin/

Example:-

$cd /oracle/fmw/oracle_common/common/bin/


[oracle@webcenter /oracle/fmw/oracle_common/common/bin]$ ./wlst.sh


wls:/offline> connect('weblogic','weblogic password','t3://hostname:7001')

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

wls:/webcenter/serverConfig> attachWebServicePolicy(application='owc_discussions', moduleName='owc_discussions', moduleType='web', serviceName='OWCDiscussionsServiceAuthenticated',subjectName='OWCDiscussionsServiceAuthenticated', policyURI='oracle/wss10_saml_token_service_policy')

Once the commands are executed successfully, restart WC_Spaces and WC_Collaboration server.