activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fe...@otego.com>
Subject activemq.xml PropertyPlaceholderConfigurer not working for in wrapper
Date Tue, 16 Dec 2008 17:07:51 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all

I downloaded latest version (5.2.0) and put my configuration files (activemq.xml, credentials.properties)
into the conf
directory. Starting the app using bin/activemq works well and my properties are replaced.
But starting the daemon
wrapper using bin/linux-x86-32/activemq start my properties file isn't found in the conf directory.
Is there a special
configuration to use when starting the wrapper?

credentials.properties is in /tmp/apache-activemq-5.2.0/conf

/tmp/apache-activemq-5.2.0/conf/activemq.xml
<snip>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  <property name="locations">
    <value>file:///${activemq.base}/conf/credentials.properties</value>
  </property>
</bean>
</snip>

Starting the wrapper throws following exception:
INFO   | jvm 1    | 2008/12/16 18:05:16 | java.lang.RuntimeException: Failed to execute start
task. Reason:
org.springframework.beans.factory.BeanInitializationException: Could not load properties;
nested exception is
java.io.FileNotFoundException: /../../conf/credentials.properties (No such file or directory)


Thanks for help and regards
Felix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklH4GcACgkQ2lZVCB08qHG5EQCgiH3UnsEpvL90g6Qf6e/mQrS5
/aIAoIk3AthxjahbHXPbDT2G5yMVCCRs
=q81r
-----END PGP SIGNATURE-----

Mime
View raw message