JBoss Community

"None of the policy alternatives can be satisfied."

created by Mike P in JBoss Web Services - View the full discussion

I've been staring at this error for a while:

 

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: None of the policy alternatives can be satisfied.

          at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:156)

          at $Proxy19.sayHello(Unknown Source)

          at trusttest.client.TrustTest.main(TrustTest.java:121)

Caused by: org.apache.cxf.ws.policy.PolicyException: None of the policy alternatives can be satisfied.

          at org.apache.cxf.ws.policy.EndpointPolicyImpl.chooseAlternative(EndpointPolicyImpl.java:165)

          at org.apache.cxf.ws.policy.EndpointPolicyImpl.finalizeConfig(EndpointPolicyImpl.java:145)

          at org.apache.cxf.ws.policy.EndpointPolicyImpl.initialize(EndpointPolicyImpl.java:141)

          at org.apache.cxf.ws.policy.PolicyEngineImpl.createEndpointPolicyInfo(PolicyEngineImpl.java:549)

          at org.apache.cxf.ws.policy.PolicyEngineImpl.getEndpointPolicy(PolicyEngineImpl.java:295)

          at org.apache.cxf.ws.policy.PolicyEngineImpl.getClientEndpointPolicy(PolicyEngineImpl.java:278)

          at org.apache.cxf.ws.policy.PolicyDataEngineImpl.getClientEndpointPolicy(PolicyDataEngineImpl.java:61)

          at org.apache.cxf.transport.http.HTTPConduit.updateClientPolicy(HTTPConduit.java:320)

          at org.apache.cxf.transport.http.HTTPConduit.<init>(HTTPConduit.java:305)

          at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit(HTTPTransportFactory.java:250)

          at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:228)

          at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit(SoapTransportFactory.java:235)

          at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit(AbstractConduitSelector.java:103)

          at org.apache.cxf.endpoint.UpfrontConduitSelector.prepare(UpfrontConduitSelector.java:63)

          at org.apache.cxf.endpoint.ClientImpl.prepareConduitSelector(ClientImpl.java:851)

          at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:526)

          at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464)

          at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367)

          at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320)

          at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89)

          at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)

          ... 2 more

 

I've been trying to get WS calls to work with WS-Trust, using this:

https://docs.jboss.org/author/display/JBWS/WS-Trust+and+STS

and this:

https://community.jboss.org/wiki/WS-TrustWithJBossWS-CXFOnJBossAS71

 

I can't get past this error...?

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community