This question is asked (and answered) just to share some knowledge with the SO Community.
I have recently came up with a deployment Exception of my web application (after receiving some changes from the SVN Repository) that said:
< Error > < Deployer > with ID ‘1350377960779’ for task ‘1’. Error is: ‘com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.’
com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
at com.rsa.jsafe.c.a(Unknown Source)
at com.rsa.jsafe.JSAFE_SymmetricCipher.decryptFinal(Unknown Source)
at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:124)
at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:184)
at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:96)
Truncated. see log file for complete stacktrace
Caused By: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
Googling to find an answer was not very helpful. After examining the files received from my SVN repository, i noticed that a jdbc application resource was changed.
Examining the jdbc resource more closely i found that it was using the
password-encryptedproperty which is used only for production environmentsSo I commented out this property and used the property used for the development environment:
And that worked just fine.