Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 69455 invoked from network); 25 Nov 2010 10:08:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Nov 2010 10:08:51 -0000 Received: (qmail 94976 invoked by uid 500); 25 Nov 2010 10:08:51 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 94824 invoked by uid 500); 25 Nov 2010 10:08:48 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 94816 invoked by uid 99); 25 Nov 2010 10:08:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Nov 2010 10:08:47 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ey0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Nov 2010 10:08:41 +0000 Received: by eyg5 with SMTP id 5so436975eyg.2 for ; Thu, 25 Nov 2010 02:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=ZqoTSiRuG9nId2iga7FqTuMNu4cF7DeA2uGbnXoIJnI=; b=ucprnjdFG862kqWlFZNLTqAEW/XUovQ61Bmnd/TRJTAKbtB0XIYvvnjSLttLq/+gcP QAO3Qqq3uqEWq/xnuqu7vTsCbDZE+BVzd55Ud5wQsfM2o/4pnFU48QYsbhqzSN8wub6P DFoThmBLTqSJbtVQVeFlRWaSs/J2E27okJaiA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Txd+KN2k24mhA0w06GSppWmLX8MT20f0FShJrLQzpURudA95r2ZmYT8QAWLsdWHsbj sAFtGAt3aRksg/vmex72Qj7bzA0dj/5ZJiBFuAmKOQht2zbOhwBID5659jeAY4rIF+HG eVCCgNKKm6FcVUTwDNBu4Tc0fZB9HE4bWxLyw= MIME-Version: 1.0 Received: by 10.213.114.5 with SMTP id c5mr2132564ebq.39.1290679700660; Thu, 25 Nov 2010 02:08:20 -0800 (PST) Sender: chubrilo@gmail.com Received: by 10.213.14.210 with HTTP; Thu, 25 Nov 2010 02:08:20 -0800 (PST) In-Reply-To: References: Date: Thu, 25 Nov 2010 11:08:20 +0100 X-Google-Sender-Auth: N-x-VUC5-Dsz3nThFCFxT7CCCMk Message-ID: Subject: Re: ${activemq.base} errors including jetty in startup on Ubuntu 10.10 From: Dejan Bosanac To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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: =A0http://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 w= rote: > 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 wr= ote: >> On Wed, Nov 24, 2010 at 3:31 PM, Benson Margulies 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 >>> =A0Heap sizes: current=3D251264k =A0free=3D247327k =A0max=3D251264k >>> =A0 =A0JVM args: -Xms256M -Xmx256M >>> -Dorg.apache.activemq.UseDedicatedTaskRunner=3Dtrue >>> -Djava.util.logging.config.file=3Dlogging.properties >>> -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote >>> -Dactivemq.classpath=3D/opt/apache-activemq-5.4.1/conf; >>> -Dactivemq.home=3D/opt/apache-activemq-5.4.1 >>> -Dactivemq.base=3D/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 >>> =A0INFO | PListStore:activemq-data/jdbcBroker/tmp_storage started >>> =A0INFO | Using Persistence Adapter: >>> JDBCPersistenceAdapter(org.apache.derby.jdbc.EmbeddedDataSource@5e2c17f= 7) >>> =A0INFO | Database adapter driver override recognized for : >>> [apache_derby_embedded_jdbc_driver] - adapter: class >>> org.apache.activemq.store.jdbc.adapter.DB2JDBCAdapter >>> =A0INFO | Database lock driver override not found for : >>> [apache_derby_embedded_jdbc_driver]. =A0Will use default implementation= . >>> =A0INFO | Attempting to acquire the exclusive lock to become the Master= broker >>> =A0INFO | Becoming the master on dataSource: >>> org.apache.derby.jdbc.EmbeddedDataSource@5e2c17f7 >>> =A0INFO | ActiveMQ 5.4.1 JMS Message Broker (jdbcBroker) is starting >>> =A0INFO | For help or more information please see: http://activemq.apac= he.org/ >>> =A0INFO | Scheduler using directory: activemq-data/jdbcBroker/scheduler >>> =A0INFO | JobSchedulerStore:activemq-data/jdbcBroker/scheduler started >>> =A0INFO | Listening for connections at: tcp://hercules:61616 >>> =A0INFO | Connector default Started >>> =A0INFO | ActiveMQ JMS Message Broker (jdbcBroker, >>> ID:hercules-47701-1290637599297-0:0) started >>> =A0INFO | Logging to >>> org.slf4j.impl.JCLLoggerAdapter(org.eclipse.jetty.util.log) via >>> org.eclipse.jetty.util.log.Slf4jLog >>> =A0INFO | jetty-7.0.1.v20091125 >>> =A0WARN | 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.p= roperties. >> 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=3D6-E+G-N>61E> );' >> >> ActiveMQ in Action: http://bit.ly/2je6cQ >> Blog: http://bruceblog.org/ >> Twitter: http://twitter.com/brucesnyder >> >