NoSuchAlgorithmException: Algorithm HmacSHA1 not available
Look at the following line of java: Mac.getInstance("HmacSHA1"); If I put this in a simple test program, it runs without problems on my server. However, if I use this line in a container, I get java.security.NoSuchAlgorithmException: Algorithm HmacSHA1 not available at javax.crypto.Mac.getInstance(DashoA13*..) The same JDK installation is used in both cases. After googling around a bit, I managed to get it to work by doing two things: Copying sunjce_provider.jar from $JAVA_HOME/jre/lib/ext to the lib directory of the container. Adding the following line to my code: java.security.Security