bouncycastle + JBoss AS7: JCE cannot authenticate the provider BC

后端 未结 5 569
一向
一向 2020-12-05 00:30

I use BouncyCastle for encryption in my application. When I run it standalone, everything works fine. However, if I put it in the webapp and deploy on JBoss server, I get a

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-05 01:13

    Do not deploy the bouncy-castle jar as a part of your your webapp (WEB-INF/lib). You need this file in compiliation time of course, but on JBOSS it should be here:

    $JBOSS_HOME/server/default/lib/
    

    instead of

    yourapp/WEB-INF/lib
    

提交回复
热议问题