title: Encryption Exception while loading application properties ( Java jasypt encryption)
body: <p>When trying to install a module using Maven, it throws up the following error:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>The application properties are encoded like this:</p>
  
  <pre><code>app.check.url=ENC(sCO3322RNYdt3wPfO04GoaN9PijwJzUcn9rb4ggHymA\=)
  </code></pre>
  
  <p>And my spring configuration looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:context="http://www.springframework.org/schema/context"
     xmlns:p="http://www.springframework.org/schema/p"
     xsi:schemaLocation="http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
                         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"&gt;
  &lt;bean id="placeholderConfig" class="org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer"&gt;
      &lt;constructor-arg ref="configurationEncryptor"/&gt;
      &lt;property name="ignoreResourceNotFound"&gt;
          &lt;value&gt;true&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="ignoreUnresolvablePlaceholders"&gt;
          &lt;value&gt;false&lt;/value&gt;
      &lt;/property&gt;
      &lt;property name="locations"&gt;
          &lt;list&gt;
              &lt;!-- These always come from the file system in ./conf/appCtx --&gt;
              &lt;value&gt;file:../application.properties&lt;/value&gt;
          &lt;/list&gt;
      &lt;/property&gt;
      &lt;property name="systemPropertiesModeName"&gt;
          &lt;value&gt;SYSTEM_PROPERTIES_MODE_OVERRIDE&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  &lt;bean id="configurationEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor"&gt;
      &lt;property name="config" ref="environmentVariablesConfiguration"/&gt;
  &lt;/bean&gt;
  &lt;bean id="environmentVariablesConfiguration"
        class="org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig"&gt;
      &lt;property name="algorithm" value="PBEWithMD5AndTripleDES"/&gt;
      &lt;property name="passwordEnvName" value="APP_ENCRYPTION_PASSWORD"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p></p>
  
  <p>And I have jdk 1.7 which does have the necessary JCE files for the encryption. </p>
  
  <p>Any ideas on how to resolve this issue?</p>