After I added an empty <wsp:Policy> as child element of <sp:HttpsToken>, now I am seeing new complaing - 'sp:KeyValueToken/wsp:Policy must have a value'.
WARNING: No assertion builder for type { http://schemas.microsoft.com/ws/06/2004/policy/http}NegotiateAuthenticationregistered. May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'CertificateWSTrustBinding_IWSTrustFeb2005Async_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'UserNameWSTrustBinding_IWSTrustFeb2005Async_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'CustomBinding_IWSTrustFeb2005Async1_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'IssuedTokenWSTrustBinding_IWSTrustFeb2005Async_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'IssuedTokenWSTrustBinding_IWSTrustFeb2005Async1_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'CustomBinding_IWSTrust13Async_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'CertificateWSTrustBinding_IWSTrust13Async_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'CertificateWSTrustBinding_IWSTrust13Async1_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'UserNameWSTrustBinding_IWSTrust13Async_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl handleNoRegisteredBuilder WARNING: No assertion builder for type { http://schemas.microsoft.com/ws/06/2004/policy/http}BasicAuthenticationregistered. May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'UserNameWSTrustBinding_IWSTrust13Async2_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'IssuedTokenWSTrustBinding_IWSTrust13Async_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'IssuedTokenWSTrustBinding_IWSTrust13Async1_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'WindowsWSTrustBinding_IWSTrust13Async_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider getElementPolicy WARNING: Failed to build the policy 'CustomBinding_IWSTrust13Async1_policy':sp:KeyValueToken/wsp:Policy must have a value May 31, 2012 6:34:25 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging WARNING: Interceptor for { http://www.example.org/contract/DoubleIt}DoubleItService#{http://www.example.org/contract/DoubleIt}DoubleIthas thrown exception, unwinding now java.lang.IllegalArgumentException: sp:KeyValueToken/wsp:Policy must have a value at org.apache.cxf.ws.security.policy.builders.KeyValueTokenBuilder.build(KeyValueTokenBuilder.java:65) at org.apache.cxf.ws.security.policy.builders.KeyValueTokenBuilder.build(KeyValueTokenBuilder.java:36) at org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:138) at org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:117) at org.apache.neethi.PolicyBuilder.processOperationElement(PolicyBuilder.java:224) at org.apache.neethi.PolicyBuilder.getPolicyOperator(PolicyBuilder.java:174) at org.apache.neethi.PolicyBuilder.getPolicy(PolicyBuilder.java:124) at org.apache.cxf.ws.security.policy.builders.SupportingTokens12Builder.build(SupportingTokens12Builder.java:107) at org.apache.cxf.ws.security.policy.builders.SupportingTokens12Builder.build(SupportingTokens12Builder.java:43) at org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder(AssertionBuilderFactoryImpl.java:138) at org.apache.neethi.AssertionBuilderFactoryImpl.build(AssertionBuilderFactoryImpl.java:117) On Thu, May 31, 2012 at 6:27 PM, Gina Choi <ginacho...@gmail.com> wrote: > Hi Oliver, > > So, it sounds like that first option wouldn't work for me since it is > adding more complaining(more sensitive). :) > For the second option, are you suggesting that changing > From: > <wsp:Policy><sp:HttpsToken RequireClientCertificate="false"/></wsp:Policy> > > To: > <wsp:Policy><sp:HttpsToken > RequireClientCertificate="false"><wsp:Policy/></sp:HttpsToken> > > for each occurrence of the <sp:HttpsToken> element? > > On Thu, May 31, 2012 at 6:02 PM, Oliver Wulff <owu...@talend.com> wrote: > >> Hi Gina >> >> The fix was that CXF complains if this element is missing. >> >> Another option is that you download this wsdl, fix the incorrect policy >> definition and reference the local wsdl file in the STSClient bean. >> >> Thanks >> Oli >> >> >> >> >> ------ >> >> Oliver Wulff >> >> Blog: http://owulff.blogspot.com<http://owulff.blogspot.com/> >> Solution Architect >> http://coders.talend.com >> >> <http://coders.talend.com>Talend Application Integration Division >> http://www.talend.com >> >> ________________________________ >> From: Gina Choi [ginacho...@gmail.com] >> Sent: 31 May 2012 23:41 >> To: us...@cxf.apache.org >> Cc: dev@cxf.apache.org; Oliver Wulff >> Subject: Re: Active Profile Problem with Apache CXF and ADFS2.0(STS) >> >> Hi Oliver, >> >> <sp:HttpsToken> only appears in ADFS2.0 wsdl file like bellow, but I >> don't think that can modify ADFS2.0 wsdl file. It came from Microsoft as it >> is. <sp:HttpsToken> is child of <wsp:Policy> here. >> >> >> <wsp:Policy><sp:HttpsToken RequireClientCertificate="true"/></wsp:Policy> >> >> >> You have mentioned that there is a fix from CXF. I am using CXF 2.6.0. Do >> you have newer version available? >> >> Gina >> >> On Thu, May 31, 2012 at 5:18 PM, Oliver Wulff <owu...@talend.com<mailto: >> owu...@talend.com>> wrote: >> Hi Gina >> >> Add an empty wsp:Policy element as a child to sp:HttpsToken: >> </wsp:policy> >> >> There was a fix in CXF to be spec compliant. >> >> HTH >> >> >> >> ------ >> >> Oliver Wulff >> >> Blog: http://owulff.blogspot.com<http://owulff.blogspot.com/> >> Solution Architect >> http://coders.talend.com >> >> <http://coders.talend.com>Talend Application Integration Division >> http://www.talend.com >> > >