cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Please help with ws-addressing and ws-policy issue
Date Fri, 10 Sep 2010 19:16:19 GMT

What does your spring context configuration look like?   You may need to add 
imports for cxf-extension-addr.xml and cxf-extension-ws-security.xml.    That 
SHOULD register builders for eveything in your list.

Dan



On Friday 10 September 2010 11:56:16 am Sergey Beryozkin wrote:
> Can you put a breakpoint in
> 
> org.apache.cxf.ws.policy.builder.primitive.PrimitiveAssertionBuilder
> constructors and build() methods ?
> It appears a ws/addr module delegates to it (with Spring initializing it)
> for dealing with the legacy UsingAddressing assertions...
> 
> May be the builder is not even invoked ?
> 
> cheers, Sergey
> 
> On Fri, Sep 10, 2010 at 4:02 PM, iPhone Developer <iPhoneDev@bpc.ag> wrote:
> > I managed to get a detailed log of cxf's activities just before the
> > method call on level 'FINEST' and pasted it below.
> > Are the warnings about missing assertion builders critical? I think I
> > have read somewhere that they can be ignored.
> > 
> > 
> > 
> > DEBUG 2010-09-10 16:56:48,740 [http-9380-2] (ClientImpl.java:445) -
> > Invoke, operation info: [BindingOperationInfo:
> > {http://Yello.NaturEnergiePlus.Services.Contracts.Kunden.ServiceContracts
> > }Au
> > thenticate], params:
> > 
> > [datacontracts.kunden.contracts.services.naturenergieplus.yello.Authentic
> > ate Request@65c0bb4b]
> > DEBUG 2010-09-10 16:56:48,740 [http-9380-2] (ClientImpl.java:445) -
> > Invoke, operation info: [BindingOperationInfo:
> > {http://Yello.NaturEnergiePlus.Services.Contracts.Kunden.ServiceContracts
> > }Au
> > thenticate], params:
> > 
> > [datacontracts.kunden.contracts.services.naturenergieplus.yello.Authentic
> > ate Request@65c0bb4b]
> > DEBUG 2010-09-10 16:56:48,741 [http-9380-2] (ClientImpl.java:569) - set
> > requestContext to message
> > be{ws-security.encryption.properties=cxf-encryption.properties,
> > ws-security.callback-handler=cxfCallbackHandler,
> > java.lang.reflect.Method=public abstract
> > 
> > datacontracts.kunden.contracts.services.naturenergieplus.yello.Authentica
> > teR esponse
> > 
> > servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKunden
> > Por
> > 
> > talService.authenticate(datacontracts.kunden.contracts.services.naturener
> > gie plus.yello.AuthenticateRequest) throws
> > 
> > servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKunden
> > Por talServiceAuthenticateFaultExceptionFaultFaultMessage,
> > ws-security.encryption.username=encryptionUser,
> > 
> > org.apache.cxf.jaxws.context.WrappedMessageContext.SCOPES={ws-security.en
> > cry ption.properties=APPLICATION,
> > ws-security.callback-handler=APPLICATION,
> > ws-security.encryption.username=APPLICATION,
> > ws-security.signature.properties=APPLICATION,
> > org.apache.cxf.message.Message.ENDPOINT_ADDRESS=APPLICATION},
> > ws-security.signature.properties=cxf-signature.properties,
> > org.apache.cxf.message.Message.ENDPOINT_ADDRESS=
> > http://s4o4121.enbw.net/WebS
> > erviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc<http://s4o4121.en
> > bw.net/WebS%0AerviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc> }
> > DEBUG 2010-09-10 16:56:48,741 [http-9380-2] (ClientImpl.java:569) - set
> > requestContext to message
> > be{ws-security.encryption.properties=cxf-encryption.properties,
> > ws-security.callback-handler=cxfCallbackHandler,
> > java.lang.reflect.Method=public abstract
> > 
> > datacontracts.kunden.contracts.services.naturenergieplus.yello.Authentica
> > teR esponse
> > 
> > servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKunden
> > Por
> > 
> > talService.authenticate(datacontracts.kunden.contracts.services.naturener
> > gie plus.yello.AuthenticateRequest) throws
> > 
> > servicecontracts.kunden.contracts.services.naturenergieplus.yello.IKunden
> > Por talServiceAuthenticateFaultExceptionFaultFaultMessage,
> > ws-security.encryption.username=encryptionUser,
> > 
> > org.apache.cxf.jaxws.context.WrappedMessageContext.SCOPES={ws-security.en
> > cry ption.properties=APPLICATION,
> > ws-security.callback-handler=APPLICATION,
> > ws-security.encryption.username=APPLICATION,
> > ws-security.signature.properties=APPLICATION,
> > org.apache.cxf.message.Message.ENDPOINT_ADDRESS=APPLICATION},
> > ws-security.signature.properties=cxf-signature.properties,
> > org.apache.cxf.message.Message.ENDPOINT_ADDRESS=
> > http://s4o4121.enbw.net/WebS
> > erviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc<http://s4o4121.en
> > bw.net/WebS%0AerviceHost/NaturEnergiePlus/1_0/KundenPortalService.svc> }
> > DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:796) -
> > Interceptors contributed by bus:
> > [org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84]
> > DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:796) -
> > Interceptors contributed by bus:
> > [org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84]
> > DEBUG 2010-09-10 16:56:48,743 [http-9380-2] (ClientImpl.java:800) -
> > Interceptors contributed by client: [] DEBUG 2010-09-10 16:56:48,743
> > [http-9380-2] (ClientImpl.java:800) - Interceptors contributed by client:
> > []
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:804) -
> > Interceptors contributed by endpoint:
> > [org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524,
> > org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801,
> > org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398e
> > d ,
> > org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a,
> > org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8,
> > org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725]
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:804) -
> > Interceptors contributed by endpoint:
> > [org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524,
> > org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801,
> > org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398e
> > d ,
> > org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a,
> > org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8,
> > org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725]
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:808) -
> > Interceptors contributed by binding:
> > [org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5,
> > org.apache.cxf.interceptor.StaxOutInterceptor@67871079,
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@54
> > 4aa d08, org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373,
> > org.apache.cxf.interceptor.BareOutInterceptor@75471dd2,
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7
> > 022 5,
> > org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353]
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:808) -
> > Interceptors contributed by binding:
> > [org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5,
> > org.apache.cxf.interceptor.StaxOutInterceptor@67871079,
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@54
> > 4aa d08, org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373,
> > org.apache.cxf.interceptor.BareOutInterceptor@75471dd2,
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7
> > 022 5,
> > org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353]
> > DEBUG 2010-09-10 16:56:48,744 [http-9380-2] (ClientImpl.java:814) -
> > Interceptors contributed by databinding: [] DEBUG 2010-09-10
> > 16:56:48,744 [http-9380-2] (ClientImpl.java:814) - Interceptors
> > contributed by databinding: [] DEBUG 2010-09-10 16:56:48,770
> > [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84 to phase setup
> > DEBUG
> > 2010-09-10 16:56:48,770 [http-9380-2] (PhaseInterceptorChain.java:203) -
> > Adding interceptor
> > org.apache.cxf.ws.policy.PolicyOutInterceptor@4c19cc84to phase setup
> > DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524 to phase
> > prepare-send DEBUG 2010-09-10 16:56:48,770 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.MessageSenderInterceptor@31c21524 to phase
> > prepare-send DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801 to phase
> > pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@3cfa0801 to phase
> > pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398e
> > d to phase pre-marshal DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.handler.logical.LogicalHandlerOutInterceptor@432398e
> > d to phase pre-marshal DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a to
> > phase pre-logical DEBUG 2010-09-10 16:56:48,771 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@560d120a to
> > phase pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8 to phase
> > pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@741b7aa8 to phase
> > pre-logical DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725 to
> > phase pre-protocol DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor@3811e725 to
> > phase pre-protocol DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5 to phase
> > pre-stream DEBUG 2010-09-10 16:56:48,772 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.AttachmentOutInterceptor@1f5e4ae5 to phase
> > pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.StaxOutInterceptor@67871079 to phase
> > pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203)
> > - Adding interceptor
> > org.apache.cxf.interceptor.StaxOutInterceptor@67871079 to phase
> > pre-stream DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@54
> > 4aa d08 to phase pre-logical DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@54
> > 4aa d08 to phase pre-logical DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373 to phase
> > marshal DEBUG 2010-09-10 16:56:48,773 [http-9380-2]
> > (PhaseInterceptorChain.java:203)
> > - Adding interceptor
> > org.apache.cxf.interceptor.WrappedOutInterceptor@72a61373 to phase
> > marshal DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203)
> > - Adding interceptor
> > org.apache.cxf.interceptor.BareOutInterceptor@75471dd2 to phase marshal
> > DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.interceptor.BareOutInterceptor@75471dd2 to phase marshal
> > DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203)
> > - Adding interceptor
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7
> > 022 5 to phase post-logical DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > 
> > org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@ff7
> > 022 5 to phase post-logical DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353 to
> > phase
> > write DEBUG 2010-09-10 16:56:48,774 [http-9380-2]
> > (PhaseInterceptorChain.java:203) - Adding interceptor
> > org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@21add353 to
> > phase
> > write  WARN 2010-09-10 16:56:48,787 [http-9380-2]
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireDerivedKeys<
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireDerivedKeys
> > > registered.
> > 
> >  WARN 2010-09-10 16:56:48,787 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireDerivedKeys<
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireDerivedKeys
> > > registered.
> > 
> >  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireThumbprintRef
> > er<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireThumbpri
> > ntRefer> ence registered.
> > 
> >  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}RequireThumbprintRef
> > er<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DRequireThumbpri
> > ntRefer> ence registered.
> > 
> >  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}WssX509V3Token10<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DWssX509V3Token10>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,789 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}WssX509V3Token10<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DWssX509V3Token10>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DIncludeTimestamp>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}IncludeTimestamp<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DIncludeTimestamp>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}EncryptSignature<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DEncryptSignature>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,796 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}EncryptSignature<ht
> > tp://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DEncryptSignature>
> > registered.
> > 
> >  WARN 2010-09-10 16:56:48,797 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}OnlySignEntireHeader
> > sA<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DOnlySignEntireH
> > eadersA> ndBody registered.
> > 
> >  WARN 2010-09-10 16:56:48,797 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {
> > http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}OnlySignEntireHeader
> > sA<http://schemas.xmlsoap.org/ws/2005/07/securitypolicy%7DOnlySignEntireH
> > eadersA> ndBody registered.
> > 
> >  WARN 2010-09-10 16:56:48,802 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3.
> > org/2006/05/addressing/wsdl%7DUsingAddressing>registered.
> > 
> >  WARN 2010-09-10 16:56:48,802 [http-9380-2]
> > 
> > (AssertionBuilderRegistryImpl.java:102) - No assertion builder for type
> > {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3.
> > org/2006/05/addressing/wsdl%7DUsingAddressing>registered. DEBUG
> > 2010-09-10 16:56:48,803 [http-9380-2] (PolicyEngineImpl.java:506) -
> > Alternative
> > {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3
> > .org/2006/05/addressing/wsdl%7DUsingAddressing>is not supported
> > DEBUG 2010-09-10 16:56:48,803 [http-9380-2] (PolicyEngineImpl.java:506) -
> > Alternative
> > {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing<http://www.w3
> > .org/2006/05/addressing/wsdl%7DUsingAddressing>is not supported

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Mime
View raw message