0 Replies Latest reply on Jun 1, 2012 12:07 PM by Pascal Paradis-Théberge

    No handler installed for URI http://www.w3.org/2001/10/xml-exc-c14n#

    Pascal Paradis-Théberge Newbie

      We've been hit by bug #4248  (https://issues.jboss.org/browse/AS7-4248) with XML validation code. So we've tried running it against the nightly builds and we get the error below. This code runs fine if we use a standalone jdk1.6 install using the main method. It also runs fine when running in jboss 6.1.0. It only fails when running within jboss 7.1.0 and the latest nightly (but differently). Attached are the java source files and the packaged war file.

       

       

      Caused by: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: Couldn't find Transform for: http://www.w3.org/2001/10/xml-exc-c14n#

          at org.jcp.xml.dsig.internal.dom.DOMXMLSignature$DOMSignatureValue.validate(DOMXMLSignature.java:517) [classes.jar:1.6.0_31]

          at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.validate(DOMXMLSignature.java:232) [classes.jar:1.6.0_31]

          at com.test.testsaml.Test.checkSignature(Test.java:78) [classes:]

          ... 17 more

      Caused by: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.dsig.TransformException: Couldn't find Transform for: http://www.w3.org/2001/10/xml-exc-c14n#

          at org.jcp.xml.dsig.internal.dom.DOMSignedInfo.canonicalize(DOMSignedInfo.java:175) [classes.jar:1.6.0_31]

          at org.jcp.xml.dsig.internal.dom.DOMSignatureMethod.verify(DOMSignatureMethod.java:235) [classes.jar:1.6.0_31]

          at org.jcp.xml.dsig.internal.dom.DOMXMLSignature$DOMSignatureValue.validate(DOMXMLSignature.java:514) [classes.jar:1.6.0_31]

          ... 19 more

      Caused by: javax.xml.crypto.dsig.TransformException: Couldn't find Transform for: http://www.w3.org/2001/10/xml-exc-c14n#

          at org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.transform(ApacheCanonicalizer.java:183) [classes.jar:1.6.0_31]

          at org.jcp.xml.dsig.internal.dom.DOMTransform.transform(DOMTransform.java:129) [classes.jar:1.6.0_31]

          at org.jcp.xml.dsig.internal.dom.DOMCanonicalizationMethod.canonicalize(DOMCanonicalizationMethod.java:67) [classes.jar:1.6.0_31]

          at org.jcp.xml.dsig.internal.dom.DOMSignedInfo.canonicalize(DOMSignedInfo.java:172) [classes.jar:1.6.0_31]

          ... 21 more

      Caused by: com.sun.org.apache.xml.internal.security.transforms.InvalidTransformException: Unknown transformation. No handler installed for URI http://www.w3.org/2001/10/xml-exc-c14n#

          at com.sun.org.apache.xml.internal.security.transforms.Transform.<init>(Transform.java:97) [classes.jar:1.6.0_31]

          at com.sun.org.apache.xml.internal.security.transforms.Transform.getInstance(Transform.java:235) [classes.jar:1.6.0_31]

          at org.jcp.xml.dsig.internal.dom.ApacheCanonicalizer.transform(ApacheCanonicalizer.java:175) [classes.jar:1.6.0_31]

          ... 24 more