jboss7.1.1下报java.lang.SecurityException: JCE cannot authenticate the provider BC

jboss7.1.1下报java.lang.SecurityException: JCE cannot authenticate the provider BC错误,解决办法:

1、 在jboss下创建如下目录:$JBOSS_HOME/modules/org/bouncycastle/main,将bcprov-jdk16-146.jar、module.xml放到该目录下;

2、在 $JBOSS_HOME/standalone/configuration/standalone.xm文件中,找到这一行,

 

 <subsystem xmlns="urn:jboss:domain:ee:1.0"/>

将它替换为:

 

 <subsystem xmlns="urn:jboss:domain:ee:1.0">
    <global-modules>
        <module name="org.bouncycastle" slot="main"/>
    </global-modules>
</subsystem>

你可能感兴趣的:(jboss7.1.1下报java.lang.SecurityException: JCE cannot authenticate the provider BC)