Here is the question I asked recently: org.apache.commons.codec.digest.Md5Crypt.md5Crypt function. exception occured under linux, but fine under windows
Although finally, I resolved it, but I'm still confused. What made this happen?
My jdk was 1.7, my tomcat was 7, my web application was compiled by jdk 1.7, version of commons-codec.jar was 1.10, then an exception was thrown.
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
When I changed my tomcat from 7 to 8, it worked fine. Why? What does tomcat do to applications?