cxf (ws security) support for http://www.bea.com/wls90/security/policy

Viewed 18

To secure a soap client (running in jboss 7.2 with cxf-3.2.5), I need to load a policy that has been given to me.

The file is using:

xmlns:wssp="http://www.bea.com/wls90/security/policy" (to use for example Integrity or MessageAge)

When I set this policy, the client fails with this log:

No assertion builder for type {http://www.bea.com/wls90/security/policy}Integrity registered.
No assertion builder for type {http://www.bea.com/wls90/security/policy}MessageAge registered.
org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied. 
 - - - - 
14:48:19,838 WARNING [org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl] (AWT-EventQueue-0) No assertion builder for type {http://www.bea.com/wls90/security/policy}Integrity registered.
14:48:19,840 WARNING [org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl] (AWT-EventQueue-0) No assertion builder for type {http://www.bea.com/wls90/security/policy}MessageAge registered.
14:48:19,843 INFO  [stdout] (AWT-EventQueue-0) 2022-09-14 14:48:19,842 FATAL [AWT-EventQueue-0] (ClienteCxfPolicyCode.java:142) - ERROR : org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied. -> [LoggerBasico]
14:48:19,843 INFO  [stdout] (AWT-EventQueue-0) org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied.
14:48:19,843 INFO  [stdout] (AWT-EventQueue-0)  at org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(EndpointPolicyImpl.java:172)
14:48:19,843 INFO  [stdout] (AWT-EventQueue-0)  at org.apache.cxf.ws.policy.EndpointPolicyImpl.finalizeConfig(EndpointPolicyImpl.java:146)
14:48:19,843 INFO  [stdout] (AWT-EventQueue-0)  at org.apache.cxf.ws.policy.EndpointPolicyImpl.updatePolicy(EndpointPolicyImpl.java:103)
14:48:19,843 INFO  [stdout] (AWT-EventQueue-0)  at org.apache.cxf.ws.policy.WSPolicyFeature.initialize(WSPolicyFeature.java:167)
14:48:19,845 INFO  [stdout] (AWT-EventQueue-0)  at org.apache.cxf.frontend.ClientFactoryBean.applyFeatures(ClientFactoryBean.java:113)
14:48:19,845 INFO  [stdout] (AWT-EventQueue-0)  at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:101)
14:48:19,845 INFO  [stdout] (AWT-EventQueue-0)  at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:159)
14:48:19,845 INFO  [stdout] (AWT-EventQueue-0)  at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142)
14:48:19,845 INFO  [stdout] (AWT-EventQueue-0)  at es.pruebaPoliticaWS.ClienteCxfPolicyCode.pruebaConPolicy(ClienteCxfPolicyCode.java:92)

Is there any library or configuration that I can use to be able to use this policy file with cxf?

Is there any other soap framework that implements this policy (must run in JBoss 7.2)

Thank you.

0 Answers
Related