11 Replies Latest reply on May 10, 2012 7:26 PM by oman002

    JCE cannot authenticate the provider BC

    rhinmass Newbie

      I am migrating a webapp from JBoss 4.0.5.GA to JBoss AS7.  I am using 7.1.0.Alpha1-SNAPSHOT. 

       

       

      I am getting the following stack grace on

       

           Cipher.getInstance("AES/CBC/PKCS7Padding", "BC").

       

       

      Caused by: java.lang.SecurityException: JCE cannot authenticate the provider BC

              at javax.crypto.Cipher.getInstance(DashoA13*..) [:1.6]

              at javax.crypto.Cipher.getInstance(DashoA13*..) [:1.6]

              ... 113 more

       

      Caused by: java.util.jar.JarException: Cannot parse vfs:/C:/work/jboss-upgrade/app/src/main/webapp.war/WEB-INF/lib/bcprov-jdk15-136.jar

              at javax.crypto.SunJCE_c.a(DashoA13*..) [:1.6]

              at javax.crypto.SunJCE_b.b(DashoA13*..) [:1.6]

              at javax.crypto.SunJCE_b.a(DashoA13*..) [:1.6]

              at javax.crypto.SunJCE_b.b(DashoA13*..) [:1.6]

              at javax.crypto.Cipher.getInstance(DashoA13*..) [:1.6]

       

      The same war (and bcprov-jdk15-136.jar) runs on 4.0.5.GA.

       

      Any ideas why the AS could not parse the jar file?