Dejan, I would be tempted, if I were you, to do the property placeholder setup in the Java code instead of depending on having it called out as a bean in the individual XML files.
--benson On Thu, Nov 25, 2010 at 5:08 AM, Dejan Bosanac <[email protected]> wrote: > Fixed with https://issues.apache.org/activemq/browse/AMQ-3054 > > Thanks for reporting. > > Cheers > -- > Dejan Bosanac > ----------------- > FuseSource - The experts in open source integration and messaging. > Email: [email protected] > Web: http://fusesource.com > Twitter: http://twitter.com/dejanb > ActiveMQ in Action - http://www.manning.com/snyder/ > Blog - http://www.nighttale.net > > > > On Thu, Nov 25, 2010 at 3:57 AM, Benson Margulies <[email protected]> > wrote: >> I've found it. activemq.xml has a property placeholder bean, but >> activemq-jdbc.xml does not. >> >> >> On Wed, Nov 24, 2010 at 9:56 PM, Bruce Snyder <[email protected]> wrote: >>> On Wed, Nov 24, 2010 at 3:31 PM, Benson Margulies <[email protected]> >>> wrote: >>>> I'm attempting a very basic install of 5.4.1 on Ubuntu 10.10, and the >>>> jetty startup fails due to a rather mysterious collection of errors >>>> related to ${activemq.base}. This don't happen on my mac. >>>> >>>> >>>> >>>> hercules% sudo bin/activemq console >>>> INFO: Loading '/etc/default/activemq' >>>> INFO: Using java '/usr/bin/java' >>>> INFO: Starting in foreground, this is just for debugging purposes >>>> (stop process by pressing CTRL+C) >>>> Java Runtime: Sun Microsystems Inc. 1.6.0_22 >>>> /usr/lib/jvm/java-6-sun-1.6.0.22/jre >>>> Heap sizes: current=251264k free=247327k max=251264k >>>> JVM args: -Xms256M -Xmx256M >>>> -Dorg.apache.activemq.UseDedicatedTaskRunner=true >>>> -Djava.util.logging.config.file=logging.properties >>>> -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote >>>> -Dactivemq.classpath=/opt/apache-activemq-5.4.1/conf; >>>> -Dactivemq.home=/opt/apache-activemq-5.4.1 >>>> -Dactivemq.base=/opt/apache-activemq-5.4.1 >>> >>> Notice above that the activemq.base system property is successfully >>> being set to /opt/apache-activemq-5.4.1. >>> >>>> ACTIVEMQ_HOME: /opt/apache-activemq-5.4.1 >>>> ACTIVEMQ_BASE: /opt/apache-activemq-5.4.1 >>>> Loading message broker from: xbean:activemq.xml >>>> INFO | PListStore:activemq-data/jdbcBroker/tmp_storage started >>>> INFO | Using Persistence Adapter: >>>> JDBCPersistenceAdapter(org.apache.derby.jdbc.embeddeddatasou...@5e2c17f7) >>>> INFO | Database adapter driver override recognized for : >>>> [apache_derby_embedded_jdbc_driver] - adapter: class >>>> org.apache.activemq.store.jdbc.adapter.DB2JDBCAdapter >>>> INFO | Database lock driver override not found for : >>>> [apache_derby_embedded_jdbc_driver]. Will use default implementation. >>>> INFO | Attempting to acquire the exclusive lock to become the Master >>>> broker >>>> INFO | Becoming the master on dataSource: >>>> org.apache.derby.jdbc.embeddeddatasou...@5e2c17f7 >>>> INFO | ActiveMQ 5.4.1 JMS Message Broker (jdbcBroker) is starting >>>> INFO | For help or more information please see: >>>> http://activemq.apache.org/ >>>> INFO | Scheduler using directory: activemq-data/jdbcBroker/scheduler >>>> INFO | JobSchedulerStore:activemq-data/jdbcBroker/scheduler started >>>> INFO | Listening for connections at: tcp://hercules:61616 >>>> INFO | Connector default Started >>>> INFO | ActiveMQ JMS Message Broker (jdbcBroker, >>>> ID:hercules-47701-1290637599297-0:0) started >>>> INFO | Logging to >>>> org.slf4j.impl.JCLLoggerAdapter(org.eclipse.jetty.util.log) via >>>> org.eclipse.jetty.util.log.Slf4jLog >>>> INFO | jetty-7.0.1.v20091125 >>>> WARN | FAILED HashLoginService[ActiveMQRealm]: >>>> java.io.FileNotFoundException: >>>> /opt/apache-activemq-5.4.1/${activemq.base}/conf/jetty-realm.properties >>>> (No such file or directory) >>> >>> But then it fails here. Note that the activemq.base system property is >>> set to /opt/apache-activemq-5.4.1 but the path to the >>> jetty-realm.properties file is effectively >>> /opt/apache-activemq-5.4.1//opt/apache-activemq-5.4.1/conf/jetty-realm.properties. >>> My guess is that the pathing in the config file is munged somehow. >>> >>> Bruce >>> -- >>> perl -e 'print >>> unpack("u30","D0G)u8...@4vyy9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" >>> );' >>> >>> ActiveMQ in Action: http://bit.ly/2je6cQ >>> Blog: http://bruceblog.org/ >>> Twitter: http://twitter.com/brucesnyder >>> >> >
