activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: ${activemq.base} errors including jetty in startup on Ubuntu 10.10
Date Thu, 25 Nov 2010 02:57:33 GMT
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
>

Mime
View raw message