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
As I put in some other thread it can be also added programmatically by putting the line:
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
Source: jce cannot authenticate the provider bc