Tuesday, February 24, 2015

[WSM-02557] InvalidSecurity : error in processing the WS-Security security header in SOA Suite 12c

Problem:

When invoking a SOA composite deployed to Oracle SOA Suite 12c (12.1.3) via SoapUI and received the following error:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header>
      <tracking:faultId xmlns:tracking="http://oracle.soa.tracking.core.TrackingProperty">7</tracking:faultId>
   </env:Header>
   <env:Body>
      <env:Fault xmlns:ns0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <faultcode>ns0:InvalidSecurity</faultcode>
         <faultstring>InvalidSecurity : error in processing the WS-Security security header</faultstring>
         <faultactor/>
      </env:Fault>
   </env:Body>
</env:Envelope>
The soa_server1.out file shows the following error:
<Feb 23, 2015 7:26:52 PM EST> <Error> <oracle.wsm.resources.enforcement> <WSM-07620> <Agent cannot enforce policies due to either failure in retrieving polices or error in validations, detail= "WSM-02557 The documents required to configure the Oracle Web Services Manager runtime have not been retrieved from the Policy Manager application (wsm-pm), possibly because the application is not running or has not been deployed in the environment. The query "&(policysets:global/%)(@appliesTo~="SCA-SERVICE()")" is queued for later retrieval.
".><Feb 23, 2015 7:26:52 PM EST> <Error> <oracle.wsm.resources.enforcement> <WSM-07503> <Failure in Oracle WSM Agent processFault, category= security, function=agent.function.service, application=default, composite=getWeather, modelObj=getweather_client_ep, policy=null, policyVersion=null, assertionName=null.oracle.wsm.common.sdk.WSMException: GenericFault : generic error        at oracle.wsm.agent.WSMAgent.getPolRefPolMap(WSMAgent.java:1126)        at oracle.wsm.agent.WSMAgent.processCommon(WSMAgent.java:1178)        at oracle.wsm.agent.WSMAgent.processFault(WSMAgent.java:808)        at oracle.fabric.common.BindingSecurityInterceptor.processFault(BindingSecurityInterceptor.java:267)        at oracle.integration.platform.common.InterceptorChainImpl.processFault(InterceptorChainImpl.java:289)

Solution:

This is because WSM (Web Services Manager) is not up. This could be the case if WSM is deployed to a managed server separate from SOA.

1. Start the OWSM managed server (e.g., generally called 'wls_wsm1' or 'wls_server1').

Applicable Versions:
  • Oracle SOA Suite 12c (12.1.3) 

 

1 comment:

akswavein said...

Really helpful down to the ground, happy to read such a useful post. I got a lot of information through it and I will surely keep it in my mind. Keep sharing. If you are looking for some useful data and information regarding Oracle 12c Rac Administration Training then visit Akswave.