JCE Problem and Configuration Changes

JCE Problem and Configuration Changes

I am running my application on ubuntu system. I do configure the bouncy castle on my machine under JAVA home directory.

But I still get this kind of error message.
info]   org.jasypt.exceptions.EncryptionOperationNotPossibleException: Encryption raised an exception. A possible cause is you are using strong encryption algorithms and you have not installed the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files in this Java Virtual Machine
[info]   at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.handleInvalidKeyException(StandardPBEByteEncryptor.java:999)
[info]   at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.encrypt(StandardPBEByteEncryptor.java:868)
[info]   at org.jasypt.encryption.pbe.PooledPBEByteEncryptor.encrypt(PooledPBEByteEncryptor.java:429)

Solution
So it should not be a bouncy castle configuration problem. I follow this blog and fix the problem.
http://help.boomi.com/atomsphere/GUID-D7FA3445-6483-45C5-85AD-60CA5BB15719.html

Then I download the file from 
http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
or
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
I unzip the file and place the jar into my directory

/usr/lib/jvm/java-6-oracle/jre/lib/security

It works.


猜你喜欢

转载自sillycat.iteye.com/blog/2089322
今日推荐