Hi,
our application needs to use JCE1.2.1 to check the registeration
information.
the JCE api is provided by SUN Cor.
after compiled, when i test the program in main(), it's quite well. but
when it runs on Tomcat, exception was thrown though i have already added
it into Tomcat's /lib folder or JRE's /lib folder:
java.lang.ExceptionInInitializerError: java.lang.SecurityException:
Cannot set up certs for trusted CAs
at javax.crypto.b.([DashoPro-V1.2-120198])
at javax.crypto.Cipher.getInstance([DashoPro-V1.2-120198])
at com.iei.gms.util.License.validLicenseKey(License.java:282)
at GMS.login.doService(login.java:100)
at GMS.login.doPost(login.java:135)
any response is highly respected
Jasmine
|