Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Tomcat in IntelliJ Java Cryptography Extension problem

$
0
0
Hi,

I am having a small problem when I am running tomcat in IntelliJ. See below the stacktrace fragment. I have JCE installed in the proper location in my OXS jdk 1.7 location

When I deploy my artifact to the SAME tomcat installation and start tomcat from the commandline it works perfectly. 

But when I start the SAME application from within IntelliJ on the SAME tomcat installation it gives the exception below.

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
     org.jasypt.encryption.pbe.StandardPBEByteEncryptor.handleInvalidKeyException(StandardPBEByteEncryptor.java:819)     org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:796)     org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:639)     org.jasypt.util.text.StrongTextEncryptor.decrypt(StrongTextEncryptor.java:106)     org.jasypt.spring.security3.PBEPasswordEncoder.isPasswordValid(PBEPasswordEncoder.java:216)

I have checked the jdk I am using in IntelliJ. It takes it from the same location. I have even added the JCE files to my SDK classpath for 1.7


Can anyone tell me if I need to do more to be able to run a webapplication on tomcat from within IntelliJ??


Kind regards,

Marc

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>