報錯信息:java.lang.NoClassDefFoundError: javax.crypto.b (initialization failure)
對於使用IBM WebSphere部署環境的時候,需要替換的非限制性jar包應該從IBM官網中下載。
具體原因可參考:
https://www-01.ibm.com/support/docview.wss?uid=swg21635319
https://community.oracle.com/thread/1529509
Answer
You may choose "Files for older versions of the SDK" as Unrestricted JCE policy file for ISBI running on "IBM Java 1.6" or "IBM Java 1.7". The filename from the Unrestricted JCE policy files site is "unrestricted.zip".
But instead you may choose "Files for Java 5.0 SR16, Java 6 SR13, Java 6 SR5 (J9 VM2.6), Java 7 SR4, and all later releases" as Unrestricted JCE policy file for ISBI running on a supported/matching Java versions. The filename from theUnrestricted JCE policy files site is "unrestrictedpolicyfiles.zip". Please note that IBM APAR IV35770 (SIGNED SECURITY JAR WILL EXPIRE IN 5 YEARS) is fixed in this newer JCE files.
下載路徑:
https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=jcesdk
由於從IBM下載存在網絡限制,現提供百度雲盤下載,鏈接如下所示:
unrestricted.zip(jdk1.4及以上)建議使用
鏈接:https://pan.baidu.com/s/1UoWF6WsH8ixjGKzendQOzQ
提取碼:vj69
unrestrictedpolicyfiles.zip
https://pan.baidu.com/s/1QxxZE8wrh0hkXpnYMzIA8A
提取碼:m5ke