We use commons-codec to encrypt passwords using the org.apache.commons.codec.digest.Md5Crypt.md5Crypt function.
It works fine on Windows, but an exception is thrown on CentOS.
We have three centOS test servers: one is centOS7, one is centOS6.7, and one is centOS7 minimum. The strangest thing is that the code runs on the centOS7 server, but not on the other two. The only difference between them is the OS. Same cats, same jdks, same builds.
Do I need any other things under Linux?
Exception Message:
java.lang.IllegalAccessError: tried to access method org.apache.commons.codec.digest.DigestUtils.getMd5Digest()Ljava/security/MessageDigest; from class org.apache.commons.codec.digest.Md5Crypt
source share