Hi JB,
I tried solution as mentioned by you i.e.
now my blueprint file looks like
<ext:property-placeholder>
<ext:location>file:etc/db.properties</ext:location>
</ext:property-placeholder>
<enc:property-placeholder>
<enc:encryptor
class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor">
<property name="config">
<bean
class="org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig">
<property name="algorithm" value="PBEWithMD5AndDES" />
<property name="password" value="${clearPassword}" />
</bean>
</property>
</enc:encryptor>
</enc:property-placeholder>
I have mentioned password in config.properties file from etc directory
as
clearPassword=trivnet
I am getting below exception
Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException
at
org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1055)[257:org.apache.servicemix.bundles.jasypt:1.9.2.1]
at
org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)[257:org.apache.servicemix.bundles.jasypt:1.9.2.1]
at
org.apache.karaf.jaas.jasypt.handler.EncryptablePropertyPlaceholder.getProperty(EncryptablePropertyPlaceholder.java:38)[258:org.apache.karaf.jaas.jasypt:3.0.2]
at
org.apache.aries.blueprint.ext.AbstractPropertyPlaceholder.retrieveValue(AbstractPropertyPlaceholder.java:430)[15:org.apache.aries.blueprint.core:1.4.1]
at
org.apache.aries.blueprint.ext.AbstractPropertyPlaceholder.processString(AbstractPropertyPlaceholder.java:437)[15:org.apache.aries.blueprint.core:1.4.1]
at
org.apache.aries.blueprint.ext.AbstractPropertyPlaceholder$LateBindingValueMetadata.getStringValue(AbstractPropertyPlaceholder.java:471)[15:org.apache.aries.blueprint.core:1.4.1]
at
org.apache.aries.blueprint.di.ValueRecipe.internalCreate(ValueRecipe.java:54)[15:org.apache.aries.blueprint.core:1.4.1]
--
View this message in context:
http://karaf.922171.n3.nabble.com/Need-help-realted-to-Jasypt-ecryption-in-Karaf-tp4037409p4037412.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.