I have been able to run activemq before, but when I try to set it to use
encrypted passwords as per
http://activemq.apache.org/encrypted-passwords.html I cant get the broker to
run.

What I basically did was to replace

<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <value>file:${activemq.conf}/credentials.properties</value>
        </property>
    </bean>

with


  <bean id="environmentVariablesConfiguration"
class="org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig">
    <property name="algorithm" value="PBEWithMD5AndDES" />
    <property name="passwordEnvName" value="ACTIVEMQ_ENCRYPTION_PASSWORD" />
  </bean>
                                                                     
  <bean id="configurationEncryptor"
class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor">
    <property name="config" ref="environmentVariablesConfiguration" />
  </bean>  
    
  <bean id="propertyConfigurer"
class="org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer"> 
      <constructor-arg ref="configurationEncryptor" /> 
      <property name="location"
value="file:${activemq.conf}/credentials-enc.properties"/> 
  </bean> 


But then instead of starting the broker, I get just the following log and no
more

2013-05-27 11:42:17,052 | INFO  | Refreshing
org.apache.activemq.xbean.XBeanBrokerFactory$1@1dd6a67: startup date [Mon
May 27 11:42:17 CEST 2013]; root of context hierarchy |
org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
2013-05-27 11:42:18,406 | INFO  | Loading properties file from URL
[file:/opt/activemq/conf/credentials-enc.properties] |
org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer | main


Any idea of that I am doing wrong?



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Problem-when-trying-to-start-activemq-after-configuring-password-encryption-tp4667504.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to