[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-users
Subject: Re: ${activemq.base} errors including jetty in startup on Ubuntu 10.10
From: Benson Margulies <bimargulies () gmail ! com>
Date: 2010-11-25 13:05:25
Message-ID: AANLkTin-jK8eEZK6kqxsQk0K1pOnxRzPtL3betVC9e68 () mail ! gmail ! com
[Download RAW message or body]
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 <dejan@nighttale.net> 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: dejanb@fusesource.com
> 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 <bimargulies@gmail.com> 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 <bruce.snyder@gmail.com> wrote:
>>> On Wed, Nov 24, 2010 at 3:31 PM, Benson Margulies <bimargulies@gmail.com> 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.EmbeddedDataSource@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.EmbeddedDataSource@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)U8V4\@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
>>>
>>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic