0 Replies Latest reply on Jun 19, 2019 7:19 AM by Veera Bhanu Prakash Paladi

    JBOSS 7.1 EAP and IAIK Class loading Issue - java.security.NoSuchAlgorithmException: No such algorithm: RSA/ECB/NoPadding

    Veera Bhanu Prakash Paladi Newbie

      Hello All,

       

      I am facing issues with JBOSS 7.1 EAP Class loading. We are using IAIK jar for authentication purpose.

       

      IAIK jar which I am using is signed jar.

       

      If I include this jar in application ear, I am facing below errors :

       

      Line: Cipher.getInstance("RSA/ECB/NoPadding",”IAIK”);

      Error : java.security.NoSuchAlgorithmException: No such algorithm: RSA/ECB/NoPadding

       

      Line: KeyGenerator.getInstance("PKCS#12-MAC")

      Error: iaik.pkcs.PKCSException: java.security.NoSuchAlgorithmException: PKCS#12-MAC KeyGenerator not available.

       

      If I place the same jar in jdk ext folder I am not facing any errors.

       

      Could someone please let me know, what can I do to avoid placing the jars in ext folder of jdk.

       

      Details :

       

      JAVA Version : jdk1.8.0_171

      JBOSS Version : JBOSS 7.1 EAP

      IAIK Version : 5.52

       

      I tried creating separate module for the jar, still I faced same above issues.