XMLSec and WSS4J in WSAS 3.1.2

gdevianne's picture
I have a web service deployed in WSAS 2.3 that validates an xml document Signature using the api: xmlsec-1.4.0.jar When I deployed my web service in WSAS 2.1, it gives me the following error : java.lang.NoSuchMethodError: org.apache.xml.security.utils.XMLUtils.createDSctx(Lorg/w3c/dom/Document;Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element; I included my jar in the lib/endorsed library of the WSAS. in the web service, the code is the following : org.w3c.dom.Element nscontext = XMLUtils.createDSctx(doc, "ds", Constants.SignatureSpecNS); doc is a org.w3c.dom.Document I then use the element with org.apache.xpath.XPathAPI.selectNodeList(doc, "//ds:Signature", nscontext); I found the class org.apache.xml.security.utils.XMLUtils in wss4j deployed as a plugin as oposed to wsas 2.3 where it was available as a library only... Any idea? My goal is to upgrade to wsas 3.x in order to use the BAM. Thanks Guillaume
adria's picture

The same problem (with

The same problem (with 3.2.0), anybody solved it? Thanks. Adrià