On Tuesday, September 06, 2011 7:49:52 PM Casey wrote:
> > I would say your Policy is invalid.   There isn't a "SecurityToken"
> > element defined for that namespace.      Definitely check the policy
> > definition to make sure it's valid.
> 
> Thanks for the response, Dan, but it seems that I get the same outcome even
> with the Policy removed from the WSDL--"None of the policy alternatives can
> be satisfied."
> 
> For whatever it's worth, the following is the "fault dump" from a run
> WITHOUT the policy in it:

I'd likely need to see a testcase.   This stack trace definitely shows that a 
Policy is being loaded and processed.   Thus, it's getting a policy from 
someplace.

Dan



> 
> Sep 6, 2011 3:41:47 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
> handleNoRegisteredBuilder
> WARNING: No assertion builder for type
> {http://docs.oasis-open.org/wss/2004/01/
> oasis-200401-wss-wssecurity-secext-1.0.xsd}SecurityToken registered. Sep 6,
> 2011 3:41:47 PM org.apache.cxf.phase.PhaseInterceptorChain
> doDefaultLogging
> WARNING: Interceptor for {http://soap.edusystems.com/member/MemberCheck.2}
> MemberCheck has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: None of the policy alternatives can be
> satisfied.
>       at org.apache.cxf.ws.policy.AbstractPolicyInterceptor.handleMessage(
>       AbstractPolicyInterceptor.java:47)
>       at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
>       PhaseInterceptorChain.java:263)
>       at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
>       ChainInitiationObserver.java:121)
>       at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(
>       AbstractHTTPDestination.java:206)
>       at org.apache.cxf.transport.servlet.ServletController.
>       invokeDestination(ServletController.java:218)
>       at org.apache.cxf.transport.servlet.ServletController.invoke(
>       ServletController.java:200)
>       at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(
>       CXFNonSpringServlet.java:114)
>       at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(
>       AbstractHTTPServlet.java:184)
>       at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(
>       AbstractHTTPServlet.java:107)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>       at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(
>       AbstractHTTPServlet.java:163)
>       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>       ApplicationFilterChain.java:290)
>       at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>       ApplicationFilterChain.java:206)
>       at org.apache.catalina.core.StandardWrapperValve.invoke(
>       StandardWrapperValve.java:233)
>       at org.apache.catalina.core.StandardContextValve.invoke(
>       StandardContextValve.java:191)
>       at org.apache.catalina.core.StandardHostValve.invoke(
>       StandardHostValve.java:127)
>       at org.apache.catalina.valves.ErrorReportValve.invoke(
>       ErrorReportValve.java:102)
>       at org.apache.catalina.core.StandardEngineValve.invoke(
>       StandardEngineValve.java:109)
>       at org.apache.catalina.connector.CoyoteAdapter.service(
>       CoyoteAdapter.java:298)
>       at org.apache.coyote.http11.Http11Processor.process(
>       Http11Processor.java:859)
>       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.
>       process(Http11Protocol.java:588)
>       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
>       JIoEndpoint.java:489)
>       at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.cxf.ws.policy.PolicyException: None of the policy
> alternatives can be satisfied.
>       at org.apache.cxf.ws.policy.EffectivePolicyImpl.chooseAlternative(
>       EffectivePolicyImpl.java:155)
>       at org.apache.cxf.ws.policy.EffectivePolicyImpl.initialise(
>       EffectivePolicyImpl.java:96)
>       at org.apache.cxf.ws.policy.PolicyEngineImpl.
>       getEffectiveServerRequestPolicy(PolicyEngineImpl.java:317)
>       at org.apache.cxf.ws.policy.EndpointPolicyImpl.initializeInterceptors(
>       EndpointPolicyImpl.java:296)
>       at org.apache.cxf.ws.policy.EndpointPolicyImpl.getInterceptors(
>       EndpointPolicyImpl.java:126)
>       at org.apache.cxf.ws.policy.PolicyInInterceptor.handle(
>       PolicyInInterceptor.java:136)
>       at org.apache.cxf.ws.policy.AbstractPolicyInterceptor.handleMessage(
>       AbstractPolicyInterceptor.java:45)
>       ... 22 more
> Sep 6, 2011 3:41:47 PM org.apache.cxf.interceptor.AbstractLoggingInterceptor
> log
> INFO: Outbound Message
> ---------------------------
> ID: 1
> Response-Code: 500
> Encoding: UTF-8
> Content-Type: text/xml
> Headers: {}
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
> <soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>None
> of the policy alternatives can be satisfied.</faultstring></soap:Fault>
> </soap:Body></soap:Envelope>
> --------------------------------------
> 
> If this is still having a problem without the policy even in it, it's saying
> to me that there's something else involved here...
-- 
Daniel Kulp
dk...@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to