2 Replies Latest reply on Jul 4, 2013 6:25 AM by Tomaž Cerar

    Problem with IBM's JRE 1.7 and XMLSignature

    Daniel Cote Newbie



      I have an application that works perfectly using Sun's JVM on both Windows or Linux.

      On AIX 6.1/PowerPC, I downloaded IBM's JVM (1.7) and, except for the following element, everything works fine.


      When trying to call XMLSignatureFactory.getInstance("DOM"), I'm getting the following exception:


      2013-07-02 23:12:56,109 GRAV (http-- com.ibm.ai.xds.soap.EnvelopeSOAPHandler.handleMessage  javax.xml.crypto.NoSuchMechanismException: class configured for XMLSignatureFactory: com.ibm.xml.crypto.dsig.dom.FactoryImpl not a XMLSignatureFactory

              at javax.xml.crypto.dsig.XMLDSigSecurity.doGetImpl(Unknown Source)

              at javax.xml.crypto.dsig.XMLDSigSecurity.getImpl(Unknown Source)

              at javax.xml.crypto.dsig.XMLDSigSecurity.getImpl(Unknown Source)

              at javax.xml.crypto.dsig.XMLSignatureFactory.findInstance(Unknown Source)

              at javax.xml.crypto.dsig.XMLSignatureFactory.getInstance(Unknown Source)



      When I try the same portion of code, in a plain java application, the call succeeded...with the same JVM.


      The problem seems related to the classloaders...


      I'm using jboss 7.1.1, patched with jbossws-cxf-4.1.1.Final as per https://community.jboss.org/wiki/JBossWS-Installation, and

      in order to support signing, we had to downgrade the version of xmlsec.jar, located in modules\org\apache\santuario\xmlsec\main, as suggested in https://issues.jboss.org/browse/AS7-4248.


      Any suggestion?