Are you getting that error when the STS receives the request or when the
client is processing the response? Either way it looks like you are pulling
in an older version of XML Security. Could you verify by running a "mvn
dependency:tree" and attaching the output?

Colm.

On Sun, Jun 10, 2012 at 1:03 PM, Sunil Bapat <[email protected]> wrote:

> Using CXF 2.6.1, I am getting the following exception when trying to
> make a web service call to an STS with asymmetric binding. I am using
> the CXF STS client, which is calling a CXF STS. My maven project pulls
> in include xmlsec-1.5.2. Anything else I am missing?
>
> Servlet.service() for servlet CXFServlet threw exception:
> java.lang.NoSuchMethodError:
> org.apache.xml.security.encryption.XMLCipher.setSecureValidation(Z)V
>        at
> org.apache.ws.security.processor.ReferenceListProcessor.decryptEncryptedData(ReferenceListProcessor.java:290)
> [wss4j-1.6.6.jar:1.6.6]
>        at
> org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:365)
> [wss4j-1.6.6.jar:1.6.6]
>        at
> org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRefs(EncryptedKeyProcessor.java:324)
> [wss4j-1.6.6.jar:1.6.6]
>        at
> org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:137)
> [wss4j-1.6.6.jar:1.6.6]
>        at
> org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:396)
> [wss4j-1.6.6.jar:1.6.6]
>        at
> org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:289)
> [cxf-rt-ws-security-2.6.1.jar:2.6.1]
>        at
> org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:97)
> [cxf-rt-ws-security-2.6.1.jar:2.6.1]
>        at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
> [cxf-api-2.6.1.jar:2.6.1]
>        at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122)
> [cxf-api-2.6.1.jar:2.6.1]
>        at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
> [cxf-rt-transports-http-2.6.1.jar:2.6.1]
>        at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
> [cxf-rt-transports-http-2.6.1.jar:2.6.1]
>
> Thanks
> Sunil.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to