activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: activemq.xml PropertyPlaceholderConfigurer not working for in wrapper
Date Wed, 17 Dec 2008 13:01:17 GMT
Dejan Bosanac schrieb:
> I raised Jira issue for this (
> https://issues.apache.org/activemq/browse/AMQ-2036) and will investigate it
> shortly.
>
Thanks, so I can watch it :-)

PS:
The error occurs on a linux box

Felix

>
> Cheers
> --
> Dejan Bosanac
>
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
>
>
> On Tue, Dec 16, 2008 at 6:07 PM, Felix Knecht <felix@otego.com> wrote:
>
> 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
>>



Mime
View raw message