Spring TC Server从2.9.2迁移到2.9.6 - 属性解码器EncryptionOperationNotPossibleException

时间:2014-08-15 15:51:55

标签: tomcat7

我正在使用以下内容:

  • vfabric-tc-server-developer-2.9.6。随Spring一起发布 STS-3.6.0-释放。
  • Tomcat的7.0.53.B.RELEASE
  • 使用JDK 1.7.0_51。

我部署了一个使用PropertyDecode加密密码的Web应用程序。当我启动应用程序时,我得到以下堆栈跟踪:

Aug 15, 2014 11:36:07 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Aug 15, 2014 11:36:08 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Aug 15, 2014 11:36:11 AM com.springsource.tcserver.security.PropertyDecoder <init>
INFO: tc Runtime property decoder using memory-based key
Aug 15, 2014 11:36:11 AM com.springsource.tcserver.security.TcDecoder initCiphers
INFO: Adding classpath: C:\Users\a433266\springsource\vfabric-tc-server-developer-2.9.6.RELEASE\tomcat-7.0.53.B.RELEASE/../lib/com.springsource.org.bouncycastle.jce-1.46.0.jar to classloader
Aug 15, 2014 11:36:11 AM com.springsource.tcserver.security.PropertyDecoder <init>
INFO: tcServer Runtime property decoder has been initialized in 82 ms
Aug 15, 2014 11:36:11 AM com.springsource.tcserver.security.PropertyDecoder decodePropertyValue
SEVERE: Unable to decode key:base64
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
    at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.handleInvalidKeyException(StandardPBEByteEncryptor.java:999)
    at org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:976)
    at org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)
    at com.springsource.tcserver.security.TcDecoder.decrypt(TcDecoder.java:76)
    at com.springsource.tcserver.security.PropertyDecoder.decodePropertyValue(PropertyDecoder.java:235)

以前有人有这个问题吗?在此先感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

看来解决方案是在我的JVM中更新我的Java Cryptography Extension(JCE)Unlimited Strength Jurisdiction Policy Files。