Hi,
This error happen when standalone cxf client try to send out request,
no servicemix get involved at all at this stage.
We actually have a test case which have a client configure with
signature action, you may need take a look[1]
[1]https://svn.apache.org/repos/asf/servicemix/components/trunk/bindings/servicemix-cxf-bc/src/test/resources/org/apache/servicemix/cxfbc/ws/security/client.xml
Freeman
On 2011-5-4, at 下午10:45, pchakinala wrote:
Hi,
I found below exception when working with cxf client to call
webservice
using Signature. Its working fine with user name token approach. My
usecase
flow is like below.
cxf client [Observed Exceptions here] ---> cxf bc consumer --->cxf bc
provider --->Third Party service
[java] WARNING: Interceptor for
{tpps}TPPServiceService#{tpps}process1122Response has
thrown exception, unwinding now
[java] org.apache.cxf.binding.soap.SoapFault: Security processing
failed.
[java] at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor
$WSS4JOutIntercepto
rInternal.handleMessage(WSS4JOutInterceptor.java:272)
[java] at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor
$WSS4JOutIntercepto
rInternal.handleMessage(WSS4JOutInterceptor.java:134)
[java] at
org
.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptor
Chain.java:255)
[java] at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
[java] at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
[java] at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
[java] at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
[java] at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:
124)
[java] at $Proxy36.process1122Response(Unknown Source)
[java] at demo.order.client.Client.main(Client.java:48)
[java] Caused by: org.apache.ws.security.WSSecurityException:
Error
during Signature:
; nested exception is:
[java] org.apache.ws.security.WSSecurityException: Signature
creation failed; nes
ted exception is:
[java]
org.apache.xml.security.signature.ReferenceNotInitializedException:
Elemen
t process1122Response has a relative namespace: xmlns="tpps"
[java] Original Exception was
org.apache.xml.security.signature.ReferenceNotInitializ
edException: Element process1122Response has a relative namespace:
xmlns="tpps"
[java] Original Exception was
org.apache.xml.security.signature.XMLSignatureException
: Element process1122Response has a relative namespace: xmlns="tpps".
Here attached full exception stack trace along with Third party
service WSDL
File. I have constructed proxy classes using cxf wsdl2java tool.Is
there any
problem with WSDL file or generated proxy classes.Please suggest
http://servicemix.396122.n5.nabble.com/file/n4370042/config.zip
config.zip
Regards,
Praveen Chakinala
--
View this message in context:
http://servicemix.396122.n5.nabble.com/org-apache-xml-security-signature-ReferenceNotInitializedException-Element-process1122Response-has-a-tp4370042p4370042.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference