Background: Recently in the construction of a company's service, need to use Tomcat, can start Tomcat after the log always error.
Java.security.InvalidKeyException:illegal Key Size. Checked, this is a Java plus decryption problem.
I followed the online method, downloaded the Jce_policy file, put it up or reported such a mistake.
Note: Because the installed JDK version is not the same, the Jce_policy version will match the JDK version. All that is said on the internet is the JDK1.6 version. I am installing the JDK1.7 version.
This is because JDK sercurity is used, and the jar package used by JDK sercurity $JAVA _home/jre/lib/security/local_policy.jar and $JAVA _home/jre/lib/ There are restrictions on technology exports in the Security/us_export_policy.jar, with only 128bit encryption, and 256bit without restrictions.
Workaround:
1. Download Jce_policyforjdk7 Address: http://down.51cto.com/data/2047329
2. After unpacking, replace the original jar package with the $java_home/jre/lib/security directory.
3. Restart the service
This article is from the "Technical Achievement Dream" blog, please be sure to keep this source http://pizibaidu.blog.51cto.com/1361909/1651684
Tomcat Launch report Java.security.InvalidKeyException:illegal Key Size