Re: ActiveMQ not starting : Nothing happens after activemq_1 attempting to acquire exclusive lease to become the master

2018-07-11 Thread Tim Bain
If you uncomment the two JDBC-related lines in log4j.properties (enabling
debugging output) and restart the broker, does the resulting output provide
any more information about what's going on?

Tim

On Tue, Jul 10, 2018, 9:18 AM ankit.mittal100 
wrote:

> Hi Tim,
>
> Thanks for reply... but right now there is only one ActiveMQ instance is
> running.
>
> Regards
> Ankit
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>


Re: ActiveMQ not starting : Nothing happens after activemq_1 attempting to acquire exclusive lease to become the master

2018-07-10 Thread ankit.mittal100
Hi Tim,

Thanks for reply... but right now there is only one ActiveMQ instance is
running.

Regards
Ankit



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Re: ActiveMQ not starting : Nothing happens after activemq_1 attempting to acquire exclusive lease to become the master

2018-07-09 Thread Tim Bain
It seems like another broker process is already running against that
database, and has already acquired the lock. Each broker process you want
to run independently (not in a master-slave configuration) needs its own
database.

Tim

On Fri, Jul 6, 2018, 3:13 AM ankit.mittal100 
wrote:

> Hi,
>
> I am trying to start activemq but it hangs on activemq_1 attempting to
> acquire exclusive lease to become the master.
>
> activemq logs are below :
>
> STATUS | wrapper  | 2018/07/06 10:32:29 | --> Wrapper Started as Daemon
> STATUS | wrapper  | 2018/07/06 10:32:29 | Launching a JVM...
> INFO   | jvm 1| 2018/07/06 10:32:29 | Wrapper (Version 3.2.3)
> http://wrapper.tanukisoftware.org
> INFO   | jvm 1| 2018/07/06 10:32:29 |   Copyright 1999-2006 Tanuki
> Software, Inc.  All Rights Reserved.
> INFO   | jvm 1| 2018/07/06 10:32:29 |
> INFO   | jvm 1| 2018/07/06 10:32:29 | Java Runtime: Oracle Corporation
> 1.8.0_171 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64/jre
> INFO   | jvm 1| 2018/07/06 10:32:29 |   Heap sizes: current=29696k
> free=24014k  max=932352k
> INFO   | jvm 1| 2018/07/06 10:32:29 | JVM args:
> -Dactivemq.home=../.. -Dactivemq.base=../..
> -Djavax.net.ssl.keyStorePassword=password
> -Djavax.net.ssl.trustStorePassword=password
> -Djavax.net.ssl.keyStore=../../conf/broker.ks
> -Djavax.net.ssl.trustStore=../../conf/broker.ts
> -Dcom.sun.management.jmxremote
> -Dorg.apache.activemq.UseDedicatedTaskRunner=true
> -Djava.util.logging.config.file=logging.properties
> -Dactivemq.conf=../../conf -Dactivemq.data=../../data
> -Djava.security.auth.login.config=../../conf/login.config -Xmx1024m
> -Djava.library.path=../../bin/linux-x86-64/ -Dwrapper.key=CVbwa_Vf_SAeX2Sa
> -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000
> -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=37540 -Dwrapper.version=3.2.3
> -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE
> -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
> INFO   | jvm 1| 2018/07/06 10:32:29 | Extensions classpath:
> INFO   | jvm 1| 2018/07/06 10:32:29 |
>
> [../../lib,../../lib/camel,../../lib/optional,../../lib/web,../../lib/extra]
> INFO   | jvm 1| 2018/07/06 10:32:29 | ACTIVEMQ_HOME: ../..
> INFO   | jvm 1| 2018/07/06 10:32:29 | ACTIVEMQ_BASE: ../..
> INFO   | jvm 1| 2018/07/06 10:32:29 | ACTIVEMQ_CONF: ../../conf
> INFO   | jvm 1| 2018/07/06 10:32:29 | ACTIVEMQ_DATA: ../../data
> INFO   | jvm 1| 2018/07/06 10:32:30 | Loading message broker from:
> xbean:activemq.xml
> INFO   | jvm 1| 2018/07/06 10:32:30 |  INFO | Refreshing
> org.apache.activemq.xbean.XBeanBrokerFactory$1@5d41bec9: startup date [Fri
> Jul 06 10:32:30 CEST 2018]; root of context hierarchy
> INFO   | jvm 1| 2018/07/06 10:32:31 |  INFO | Using Persistence
> Adapter:
> JDBCPersistenceAdapter(org.apache.commons.dbcp2.BasicDataSource@1f3d1a91)
> INFO   | jvm 1| 2018/07/06 10:32:31 |  INFO | Database adapter driver
> override recognized for : [oracle_jdbc_driver] - adapter: class
> org.apache.activemq.store.jdbc.adapter.OracleJDBCAdapter
> INFO   | jvm 1| 2018/07/06 10:32:31 |  INFO | activemq_1 attempting to
> acquire exclusive lease to become the master
>
> I have added oracle configurations in activemq.xml
>
>   destroy-method="close">
>   value="oracle.jdbc.driver.OracleDriver"/>
>  
>  
> 
> 
>  
>
> Persistent adapter config
>
> 
>  dataSource="#oracle" lockKeepAlivePeriod="5000" cleanupPeriod="6">
>  lockAcquireSleepInterval="3" maxAllowableDiffFromDBTime="1000"
> leaseHolderId="activemq_1"/>
> 
> 
>
>
> Can anybody please tell what i am missing ?
>
> Regards
> Ankit
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>

On Jul 6, 2018 3:13 AM, "ankit.mittal100" 
wrote:

Hi,

I am trying to start activemq but it hangs on activemq_1 attempting to
acquire exclusive lease to become the master.

activemq logs are below :

STATUS | wrapper  | 2018/07/06 10:32:29 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2018/07/06 10:32:29 | Launching a JVM...
INFO   | jvm 1| 2018/07/06 10:32:29 | Wrapper (Version 3.2.3)
http://wrapper.tanukisoftware.org
INFO   | jvm 1| 2018/07/06 10:32:29 |   Copyright 1999-2006 Tanuki
Software, Inc.  All Rights Reserved.
INFO   | jvm 1| 2018/07/06 10:32:29 |
INFO   | jvm 1| 2018/07/06 10:32:29 | Java Runtime: Oracle Corporation
1.8.0_171 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64/jre
INFO   | jvm 1| 2018/07/06 10:32:29 |   Heap sizes: current=29696k
free=24014k  max=932352k
INFO   | jvm 1| 2018/07/06 10:32:29 | JVM args:
-Dactivemq.home=../.. -Dactivemq.base=../..
-Djavax.net.ssl.keyStorePassword=password
-Djavax.net.ssl.trustStorePassword=password
-Djavax.net.ssl.keyStore=../../conf/broker.ks
-Djavax.net.ssl.trustStore=../../conf/broker.ts
-Dcom.sun.management.jmxremote

ActiveMQ not starting : Nothing happens after activemq_1 attempting to acquire exclusive lease to become the master

2018-07-06 Thread ankit.mittal100
Hi,

I am trying to start activemq but it hangs on activemq_1 attempting to
acquire exclusive lease to become the master.

activemq logs are below :

STATUS | wrapper  | 2018/07/06 10:32:29 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2018/07/06 10:32:29 | Launching a JVM...
INFO   | jvm 1| 2018/07/06 10:32:29 | Wrapper (Version 3.2.3)
http://wrapper.tanukisoftware.org
INFO   | jvm 1| 2018/07/06 10:32:29 |   Copyright 1999-2006 Tanuki
Software, Inc.  All Rights Reserved.
INFO   | jvm 1| 2018/07/06 10:32:29 | 
INFO   | jvm 1| 2018/07/06 10:32:29 | Java Runtime: Oracle Corporation
1.8.0_171 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64/jre
INFO   | jvm 1| 2018/07/06 10:32:29 |   Heap sizes: current=29696k 
free=24014k  max=932352k
INFO   | jvm 1| 2018/07/06 10:32:29 | JVM args:
-Dactivemq.home=../.. -Dactivemq.base=../..
-Djavax.net.ssl.keyStorePassword=password
-Djavax.net.ssl.trustStorePassword=password
-Djavax.net.ssl.keyStore=../../conf/broker.ks
-Djavax.net.ssl.trustStore=../../conf/broker.ts
-Dcom.sun.management.jmxremote
-Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Djava.util.logging.config.file=logging.properties
-Dactivemq.conf=../../conf -Dactivemq.data=../../data
-Djava.security.auth.login.config=../../conf/login.config -Xmx1024m
-Djava.library.path=../../bin/linux-x86-64/ -Dwrapper.key=CVbwa_Vf_SAeX2Sa
-Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000
-Dwrapper.jvm.port.max=31999 -Dwrapper.pid=37540 -Dwrapper.version=3.2.3
-Dwrapper.native_library=wrapper -Dwrapper.service=TRUE
-Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
INFO   | jvm 1| 2018/07/06 10:32:29 | Extensions classpath:
INFO   | jvm 1| 2018/07/06 10:32:29 |  
[../../lib,../../lib/camel,../../lib/optional,../../lib/web,../../lib/extra]
INFO   | jvm 1| 2018/07/06 10:32:29 | ACTIVEMQ_HOME: ../..
INFO   | jvm 1| 2018/07/06 10:32:29 | ACTIVEMQ_BASE: ../..
INFO   | jvm 1| 2018/07/06 10:32:29 | ACTIVEMQ_CONF: ../../conf
INFO   | jvm 1| 2018/07/06 10:32:29 | ACTIVEMQ_DATA: ../../data
INFO   | jvm 1| 2018/07/06 10:32:30 | Loading message broker from:
xbean:activemq.xml
INFO   | jvm 1| 2018/07/06 10:32:30 |  INFO | Refreshing
org.apache.activemq.xbean.XBeanBrokerFactory$1@5d41bec9: startup date [Fri
Jul 06 10:32:30 CEST 2018]; root of context hierarchy
INFO   | jvm 1| 2018/07/06 10:32:31 |  INFO | Using Persistence Adapter:
JDBCPersistenceAdapter(org.apache.commons.dbcp2.BasicDataSource@1f3d1a91)
INFO   | jvm 1| 2018/07/06 10:32:31 |  INFO | Database adapter driver
override recognized for : [oracle_jdbc_driver] - adapter: class
org.apache.activemq.store.jdbc.adapter.OracleJDBCAdapter
INFO   | jvm 1| 2018/07/06 10:32:31 |  INFO | activemq_1 attempting to
acquire exclusive lease to become the master

I have added oracle configurations in activemq.xml 

 
 
 
 


 

Persistent adapter config 








Can anybody please tell what i am missing ?

Regards
Ankit



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


Re: ActiveMQ not starting

2016-05-20 Thread OrangeJuice
Wow, that fixed it! That was way too easy. 

Thank you!



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-not-starting-tp4708599p4712204.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMQ not starting

2016-05-18 Thread finnjohnsen
OrangeJuice wrote
> INFO: Loading '/etc/default/activemq'

The problem is that /etc/default/activemq is left over from the debian
repository installation of activeMQ you've had on your computer. Delete it.





--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-not-starting-tp4708599p4712094.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMQ not starting

2016-03-01 Thread Tim Bain
Look in the start script to determine how that path is built.
On Mar 1, 2016 8:19 AM, "OrangeJuice" <orangens...@outlook.com> wrote:

> I've just checked the paths. The ../lib/ one indeed doesn't exist, as that
> one would be outside the folder where I extracted ActiveMQ to.
> I've tried copying the lib folder to that path, but the error message
> persisted.
>
> Just downloaded the same archive to a linux mint version. Works flawlessly
> there. I have no clue whats wrong :/
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-not-starting-tp4708599p4708641.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: ActiveMQ not starting

2016-03-01 Thread OrangeJuice
I've just checked the paths. The ../lib/ one indeed doesn't exist, as that
one would be outside the folder where I extracted ActiveMQ to.
I've tried copying the lib folder to that path, but the error message
persisted.

Just downloaded the same archive to a linux mint version. Works flawlessly
there. I have no clue whats wrong :/



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-not-starting-tp4708599p4708641.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMQ not starting

2016-03-01 Thread Tim Bain
Asking the obvious question: do all of the paths in that command exist?  If
not, which ones don't?  In particular, does
/home/nico/activemq/apache-activemq-5.13.1//../lib/ exist?  (Check them
all, but that one in particular looks fishy.)
On Mar 1, 2016 1:26 AM, "OrangeJuice" <orangens...@outlook.com> wrote:

> I've tried setting the evironment variable ACTIVEMQ_HOME to the folder
> where
> I've extracted ActiveMQ without the trailing slash.
>
> Now the double slashes are gone, but it still doesn't work.
>
>
> > $ ./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)
> INFO: Creating pidfile
> /home/nico/activemq/apache-activemq-5.13.1/data/activemq.pid
> ./activemq: 356: exec: "/usr/bin/java"
> -Djava.util.logging.config.file=logging.properties
>
> -Djava.security.auth.login.config=/home/nico/activemq/apache-activemq-5.13.1/conf/login.config
> -Djava.awt.headless=true
> -Djava.io.tmpdir="/home/nico/activemq/apache-activemq-5.13.1/tmp"
>
> -Dactivemq.classpath="/home/nico/activemq/apache-activemq-5.13.1/conf:/home/nico/activemq/apache-activemq-5.13.1/../lib/:"
> -Dactivemq.home="/home/nico/activemq/apache-activemq-5.13.1"
> -Dactivemq.base="/home/nico/activemq/apache-activemq-5.13.1"
> -Dactivemq.conf="/home/nico/activemq/apache-activemq-5.13.1/conf"
> -Dactivemq.data="/home/nico/activemq/apache-activemq-5.13.1/data"
> -jar "/home/nico/activemq/apache-activemq-5.13.1/bin/activemq.jar" start :
> not found
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-not-starting-tp4708599p4708625.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: ActiveMQ not starting

2016-03-01 Thread OrangeJuice
I've tried setting the evironment variable ACTIVEMQ_HOME to the folder where
I've extracted ActiveMQ without the trailing slash.

Now the double slashes are gone, but it still doesn't work.


> $ ./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)
INFO: Creating pidfile
/home/nico/activemq/apache-activemq-5.13.1/data/activemq.pid
./activemq: 356: exec: "/usr/bin/java" 
-Djava.util.logging.config.file=logging.properties
-Djava.security.auth.login.config=/home/nico/activemq/apache-activemq-5.13.1/conf/login.config
  
-Djava.awt.headless=true
-Djava.io.tmpdir="/home/nico/activemq/apache-activemq-5.13.1/tmp"   
-Dactivemq.classpath="/home/nico/activemq/apache-activemq-5.13.1/conf:/home/nico/activemq/apache-activemq-5.13.1/../lib/:"
  
-Dactivemq.home="/home/nico/activemq/apache-activemq-5.13.1"  
-Dactivemq.base="/home/nico/activemq/apache-activemq-5.13.1"  
-Dactivemq.conf="/home/nico/activemq/apache-activemq-5.13.1/conf"  
-Dactivemq.data="/home/nico/activemq/apache-activemq-5.13.1/data"   
  
-jar "/home/nico/activemq/apache-activemq-5.13.1/bin/activemq.jar" start :
not found




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-not-starting-tp4708599p4708625.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMQ not starting

2016-03-01 Thread OrangeJuice
No modifications to the script, just downloaded the file, extracted it and
tried running ActiveMQ.

I've uploaded the entire output to pastebin, as it's rather long.

http://pastebin.com/Chzg7gb1 <http://pastebin.com/Chzg7gb1>  




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-not-starting-tp4708599p4708624.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMQ not starting

2016-02-29 Thread artnaseef
Huh, that looks like quoting in the script got messed up.  Were any changes
made to the script?

Try running the script with "bash -x bin/activemq console" and save the
entire output (running within a "script" session is great for that).  Then
look for the last few lines before the failure.  That'll help confirm just
what is happening.



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-not-starting-tp4708599p4708600.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


ActiveMQ not starting

2016-02-29 Thread OrangeJuice
Hi,

I've followed the tutorial

http://activemq.apache.org/getting-started.html

and downloaded 

http://www-eu.apache.org/dist/activemq/5.13.1/apache-activemq-5.13.1-bin.tar.gz

to my Debian 8 jessie machine. When I'm trying to start ActiveMQ with the
command

/./bin/activemq console/

I get the program spits out the following:

> $ ./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)
INFO: Creating pidfile
/home/nico/activemq/apache-activemq-5.13.1//data/activemq.pid
./bin/activemq: 356: exec: "/usr/bin/java" 
-Djava.util.logging.config.file=logging.properties
-Djava.security.auth.login.config=/home/nico/activemq/apache-activemq-5.13.1//conf/login.config
  
-Djava.awt.headless=true
-Djava.io.tmpdir="/home/nico/activemq/apache-activemq-5.13.1//tmp"  
 
-Dactivemq.classpath="/home/nico/activemq/apache-activemq-5.13.1//conf:/home/nico/activemq/apache-activemq-5.13.1//../lib/:"
  
-Dactivemq.home="/home/nico/activemq/apache-activemq-5.13.1/"  
-Dactivemq.base="/home/nico/activemq/apache-activemq-5.13.1/"  
-Dactivemq.conf="/home/nico/activemq/apache-activemq-5.13.1//conf"  
-Dactivemq.data="/home/nico/activemq/apache-activemq-5.13.1//data"  
   
-jar "/home/nico/activemq/apache-activemq-5.13.1//bin/activemq.jar" start :
not found

I'm using Java 1.7u95 (OpenJDK Runtime Environment). The activemq.log inside
the data directory is completely empty.

Am I missing something?

Best regards!




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-not-starting-tp4708599.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: dlq handling stops activemq from starting?

2012-05-29 Thread Torsten Mielke
Hello,

Simply swap the order of pendingQueuePolicy and deadLetterStrategy.
The broker config likes to have entries in alphabetical orders right now. 

So use:

destinationPolicy
  policyMap
policyEntries
  policyEntry queue= producerFlowControl=false
deadLetterStrategy
  individualDeadLetterStrategy queuePrefix=DLQ. 
useQueueForQueueMessages=true /
/deadLetterStrategy
pendingQueuePolicy
  vmQueueCursor/
/pendingQueuePolicy
  /policyEntry
/policyEntries
  /policyMap
/destinationPolicy

and your broker should start up.


Hope this helps.


Torsten Mielke
tors...@fusesource.com
tmie...@blogspot.com


On May 29, 2012, at 5:19 AM, Christopher Wood wrote:

 I've read this about DLQ:
 
 http://activemq.apache.org/message-redelivery-and-dlq-handling.html
 
 But when I try to use it as in the example (queue=) ActiveMQ doesn't start 
 (5.5.1, although similar behaviour with 5.6.0). If I take the attached 
 activemq.xml and use it as is, I get a working ActiveMQ. If I uncomment the 
 part in the middle about deadLetterStrategy, ActiveMQ won't start.
 
 Can anybody spot where I've gone wrong?
 
 These are the last two lines in the (short) log:
 
 2012-05-28 23:06:40,700 | DEBUG | Found XML schema 
 [http://www.springframework.org/schema/beans/spring-beans-2.0.xsd] in 
 classpath: org/springframework/beans/factory/xml/spring-beans-2.0.xsd | 
 org.springframework.beans.factory.xml.PluggableSchemaResolver | main
 2012-05-28 23:06:40,793 | DEBUG | Found XML schema 
 [http://activemq.apache.org/schema/core/activemq-core.xsd] in classpath: 
 activemq.xsd | org.springframework.beans.factory.xml.PluggableSchemaResolver 
 | main
 
 (The above is a cut-down example. In the end I want anything to have a DLQ 
 because I want to be able to add new queues via the ldap backend without 
 restarting ActiveMQ to add new DLQ configs. I removed ldap and other bits 
 from the example to attempt to cut it down.)activemq.xml






Re: dlq handling stops activemq from starting?

2012-05-29 Thread Christopher Wood
Thank you, that worked for me.

On Tue, May 29, 2012 at 09:12:02AM +0200, Torsten Mielke wrote:
 Hello,
 
 Simply swap the order of pendingQueuePolicy and deadLetterStrategy.
 The broker config likes to have entries in alphabetical orders right now. 
 
 So use:
 
 destinationPolicy
   policyMap
 policyEntries
   policyEntry queue= producerFlowControl=false
 deadLetterStrategy
   individualDeadLetterStrategy queuePrefix=DLQ. 
 useQueueForQueueMessages=true /
 /deadLetterStrategy
 pendingQueuePolicy
   vmQueueCursor/
 /pendingQueuePolicy
   /policyEntry
 /policyEntries
   /policyMap
 /destinationPolicy
 
 and your broker should start up.
 
 
 Hope this helps.
 
 
 Torsten Mielke
 tors...@fusesource.com
 tmie...@blogspot.com
 
 
 On May 29, 2012, at 5:19 AM, Christopher Wood wrote:
 
  I've read this about DLQ:
  
  http://activemq.apache.org/message-redelivery-and-dlq-handling.html
  
  But when I try to use it as in the example (queue=) ActiveMQ doesn't 
  start (5.5.1, although similar behaviour with 5.6.0). If I take the 
  attached activemq.xml and use it as is, I get a working ActiveMQ. If I 
  uncomment the part in the middle about deadLetterStrategy, ActiveMQ won't 
  start.
  
  Can anybody spot where I've gone wrong?
  
  These are the last two lines in the (short) log:
  
  2012-05-28 23:06:40,700 | DEBUG | Found XML schema 
  [http://www.springframework.org/schema/beans/spring-beans-2.0.xsd] in 
  classpath: org/springframework/beans/factory/xml/spring-beans-2.0.xsd | 
  org.springframework.beans.factory.xml.PluggableSchemaResolver | main
  2012-05-28 23:06:40,793 | DEBUG | Found XML schema 
  [http://activemq.apache.org/schema/core/activemq-core.xsd] in classpath: 
  activemq.xsd | 
  org.springframework.beans.factory.xml.PluggableSchemaResolver | main
  
  (The above is a cut-down example. In the end I want anything to have a DLQ 
  because I want to be able to add new queues via the ldap backend without 
  restarting ActiveMQ to add new DLQ configs. I removed ldap and other bits 
  from the example to attempt to cut it down.)activemq.xml
 
 
 
 
 


dlq handling stops activemq from starting?

2012-05-28 Thread Christopher Wood
I've read this about DLQ:

http://activemq.apache.org/message-redelivery-and-dlq-handling.html

But when I try to use it as in the example (queue=) ActiveMQ doesn't start 
(5.5.1, although similar behaviour with 5.6.0). If I take the attached 
activemq.xml and use it as is, I get a working ActiveMQ. If I uncomment the 
part in the middle about deadLetterStrategy, ActiveMQ won't start.

Can anybody spot where I've gone wrong?

These are the last two lines in the (short) log:

2012-05-28 23:06:40,700 | DEBUG | Found XML schema 
[http://www.springframework.org/schema/beans/spring-beans-2.0.xsd] in 
classpath: org/springframework/beans/factory/xml/spring-beans-2.0.xsd | 
org.springframework.beans.factory.xml.PluggableSchemaResolver | main
2012-05-28 23:06:40,793 | DEBUG | Found XML schema 
[http://activemq.apache.org/schema/core/activemq-core.xsd] in classpath: 
activemq.xsd | org.springframework.beans.factory.xml.PluggableSchemaResolver | 
main

(The above is a cut-down example. In the end I want anything to have a DLQ 
because I want to be able to add new queues via the ldap backend without 
restarting ActiveMQ to add new DLQ configs. I removed ldap and other bits from 
the example to attempt to cut it down.)

activemq.xml
Description: XML document


Producer flow control preventing Activemq from starting properly

2011-11-03 Thread Rishi Sood
Hi,

I'm currently trying to work on getting producer flow control turned off in
my current configuration.  However, whenever I attempt to do that, it
appears that Activemq dies without even starting up(removing the
destinationPolicy entry allows the queue to start up properly).  Attached
below are my activemq.xml and activemq.log files that are produced on
startup.  I've turned logging up to the DEBUG level in an attempt to figure
out what might be going on.  Would love some insight from the community in
case I'm missing something.

Thanks,

Rishi

http://activemq.2283324.n4.nabble.com/file/n3987029/activemq.log
activemq.log 

http://activemq.2283324.n4.nabble.com/file/n3987029/activemq.xml
activemq.xml 

--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Producer-flow-control-preventing-Activemq-from-starting-properly-tp3987029p3987029.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: activemq not starting with xbean activemq-security.xml config, jaas plugin

2011-03-23 Thread Daniele Dellafiore
I add some precious information.
The behavior is the same also with the original activemq-security.xml.

I'm running AMQ 5.4.2, java 1.6.0_20 on a Ubuntu 10.10 server 2.6.32.

On Wed, Mar 23, 2011 at 12:20 PM, Daniele Dellafiore ilde...@gmail.comwrote:

 Hi. I was succesfull in making AMQ working with the
 1. removed simple-authentication and used jaas plugin instead, in the
 default activemq-security.xml.Tthe rest of the config file is unaltered.
 2. a login.info that used properties files for users and groups, in the
 /conf folder.
 3. users.properties contains system=manager
 4. groups.properties contains admins=admin,system

 basically, the steps described at http://activemq.apache.org/security.html

 No other step was necessary, right? Anyway, I succeded.

 Now amq is not starting anymore with that config, while a default start
 still works. Both the old instance and a new one configured from scratch.
 I've added some INFO and DEBUG to logs in the end of email.

 The logs stop and the process got killed without any other information.
 After the log there is the complete activemq-security.xml which is btw the
 defautl one with the jaas plugin.

 With no error I've no idea where to look at...


 2011-03-23 10:20:12,537 | DEBUG | Now attempting to figure out the type of
 resource: conf/activemq-security.xml |
 org.apache.activemq.xbean.XBeanBrokerFactory | main
 2011-03-23 10:20:12,763 | INFO  | Refreshing
 org.apache.activemq.xbean.XBeanBrokerFactory$1@1edc073: startup date [Wed
 Mar 23 10:20:12 UTC 2011]; root of context hierarchy |
 org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
 2011-03-23 10:20:13,156 | INFO  | Loading XML bean definitions from file
 [/home/data/apache-activemq-5.4.2/conf/activemq-security.xml] |
 org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main
 2011-03-23 10:20:15,108 | INFO  | Loading XML bean definitions from file
 [/home/data/apache-activemq-5.4.2/conf/jetty.xml] |
 org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main
 2011-03-23 10:20:15,546 | INFO  | Loading XML bean definitions from file
 [/home/data/apache-activemq-5.4.2/conf/camel.xml] |
 org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main
 2011-03-23 10:20:15,870 | INFO  | camel-osgi.jar/camel-spring-osgi.jar not
 detected in classpath |
 org.apache.camel.spring.handler.CamelNamespaceHandler | main
 2011-03-23 10:20:15,870 | DEBUG | Using
 org.apache.camel.spring.CamelContextFactoryBean as
 CamelContextBeanDefinitionParser |
 org.apache.camel.spring.handler.CamelNamespaceHandler | main
 2011-03-23 10:20:18,764 | DEBUG | Registered default:
 org.apache.camel.spring.CamelProducerTemplateFactoryBean with id: template
 on camel context: camel |
 org.apache.camel.spring.handler.CamelNamespaceHandler | main
 2011-03-23 10:20:18,764 | DEBUG | Registered default:
 org.apache.camel.spring.CamelConsumerTemplateFactoryBean with id:
 consumerTemplate on camel context: camel |
 org.apache.camel.spring.handler.CamelNamespaceHandler | main
 2011-03-23 10:20:18,964 | DEBUG | Bean factory for
 org.apache.activemq.xbean.XBeanBrokerFactory$1@1edc073:
 org.springframework.beans.factory.support.DefaultListableBeanFactory@57ae58:
 defining beans
 [environmentVariablesConfiguration,configurationEncryptor,propertyConfigurer,org.apache.activemq.xbean.XBeanBrokerService#0,org.apache.activemq.broker.util.CommandAgent#0,securityLoginService,securityConstraint,securityConstraintMapping,securityHandler,contexts,Server,template,consumerTemplate,camel:beanPostProcessor,camel,activemq];
 root of factory hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 |
 main
 2011-03-23 10:20:19,473 | INFO  | Loading properties file from URL
 [file:/home/data/activemq/conf/credentials-enc.properties] |
 org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer | main




 --
 Daniele Dellafiore
 http://danieledellafiore.net




-- 
Daniele Dellafiore
http://danieledellafiore.net


Re: activemq not starting with xbean activemq-security.xml config, jaas plugin

2011-03-23 Thread Dejan Bosanac
Hi Daniele,

note that activemq-security.xml also uses encrypted passwords (
http://activemq.apache.org/encrypted-passwords.html) so you need to do
something like

export ACTIVEMQ_ENCRYPTION_PASSWORD=activemq

before you start the broker.

It's all explained in the file header

Regards
-- 
Dejan Bosanac
-
FuseSource - The experts in open source integration and messaging.
Email: dej...@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 Wed, Mar 23, 2011 at 11:20 AM, Daniele Dellafiore ilde...@gmail.comwrote:

 Hi. I was succesfull in making AMQ working with the
 1. removed simple-authentication and used jaas plugin instead, in the
 default activemq-security.xml.Tthe rest of the config file is unaltered.
 2. a login.info that used properties files for users and groups, in the
 /conf folder.
 3. users.properties contains system=manager
 4. groups.properties contains admins=admin,system

 basically, the steps described at http://activemq.apache.org/security.html

 No other step was necessary, right? Anyway, I succeded.

 Now amq is not starting anymore with that config, while a default start
 still works. Both the old instance and a new one configured from scratch.
 I've added some INFO and DEBUG to logs in the end of email.

 The logs stop and the process got killed without any other information.
 After the log there is the complete activemq-security.xml which is btw the
 defautl one with the jaas plugin.

 With no error I've no idea where to look at...


 2011-03-23 10:20:12,537 | DEBUG | Now attempting to figure out the type of
 resource: conf/activemq-security.xml |
 org.apache.activemq.xbean.XBeanBrokerFactory | main
 2011-03-23 10:20:12,763 | INFO  | Refreshing
 org.apache.activemq.xbean.XBeanBrokerFactory$1@1edc073: startup date [Wed
 Mar 23 10:20:12 UTC 2011]; root of context hierarchy |
 org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
 2011-03-23 10:20:13,156 | INFO  | Loading XML bean definitions from file
 [/home/data/apache-activemq-5.4.2/conf/activemq-security.xml] |
 org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main
 2011-03-23 10:20:15,108 | INFO  | Loading XML bean definitions from file
 [/home/data/apache-activemq-5.4.2/conf/jetty.xml] |
 org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main
 2011-03-23 10:20:15,546 | INFO  | Loading XML bean definitions from file
 [/home/data/apache-activemq-5.4.2/conf/camel.xml] |
 org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main
 2011-03-23 10:20:15,870 | INFO  | camel-osgi.jar/camel-spring-osgi.jar not
 detected in classpath |
 org.apache.camel.spring.handler.CamelNamespaceHandler | main
 2011-03-23 10:20:15,870 | DEBUG | Using
 org.apache.camel.spring.CamelContextFactoryBean as
 CamelContextBeanDefinitionParser |
 org.apache.camel.spring.handler.CamelNamespaceHandler | main
 2011-03-23 10:20:18,764 | DEBUG | Registered default:
 org.apache.camel.spring.CamelProducerTemplateFactoryBean with id: template
 on camel context: camel |
 org.apache.camel.spring.handler.CamelNamespaceHandler | main
 2011-03-23 10:20:18,764 | DEBUG | Registered default:
 org.apache.camel.spring.CamelConsumerTemplateFactoryBean with id:
 consumerTemplate on camel context: camel |
 org.apache.camel.spring.handler.CamelNamespaceHandler | main
 2011-03-23 10:20:18,964 | DEBUG | Bean factory for
 org.apache.activemq.xbean.XBeanBrokerFactory$1@1edc073:
 org.springframework.beans.factory.support.DefaultListableBeanFactory@57ae58
 :
 defining beans

 [environmentVariablesConfiguration,configurationEncryptor,propertyConfigurer,org.apache.activemq.xbean.XBeanBrokerService#0,org.apache.activemq.broker.util.CommandAgent#0,securityLoginService,securityConstraint,securityConstraintMapping,securityHandler,contexts,Server,template,consumerTemplate,camel:beanPostProcessor,camel,activemq];
 root of factory hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1
 |
 main
 2011-03-23 10:20:19,473 | INFO  | Loading properties file from URL
 [file:/home/data/activemq/conf/credentials-enc.properties] |
 org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer |
 main




 --
 Daniele Dellafiore
 http://danieledellafiore.net



Re: activemq not starting with xbean activemq-security.xml config, jaas plugin

2011-03-23 Thread Daniele Dellafiore
thanks, that's true I totally forgot that.

On Wed, Mar 23, 2011 at 12:57 PM, Dejan Bosanac de...@nighttale.net wrote:

 Hi Daniele,

 note that activemq-security.xml also uses encrypted passwords (
 http://activemq.apache.org/encrypted-passwords.html) so you need to do
 something like

 export ACTIVEMQ_ENCRYPTION_PASSWORD=activemq

 before you start the broker.

 It's all explained in the file header

 Regards
 --
 Dejan Bosanac
 -
 FuseSource - The experts in open source integration and messaging.
 Email: dej...@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 Wed, Mar 23, 2011 at 11:20 AM, Daniele Dellafiore ilde...@gmail.com
 wrote:

  Hi. I was succesfull in making AMQ working with the
  1. removed simple-authentication and used jaas plugin instead, in the
  default activemq-security.xml.Tthe rest of the config file is unaltered.
  2. a login.info that used properties files for users and groups, in the
  /conf folder.
  3. users.properties contains system=manager
  4. groups.properties contains admins=admin,system
 
  basically, the steps described at
 http://activemq.apache.org/security.html
 
  No other step was necessary, right? Anyway, I succeded.
 
  Now amq is not starting anymore with that config, while a default start
  still works. Both the old instance and a new one configured from scratch.
  I've added some INFO and DEBUG to logs in the end of email.
 
  The logs stop and the process got killed without any other information.
  After the log there is the complete activemq-security.xml which is btw
 the
  defautl one with the jaas plugin.
 
  With no error I've no idea where to look at...
 
 
  2011-03-23 10:20:12,537 | DEBUG | Now attempting to figure out the type
 of
  resource: conf/activemq-security.xml |
  org.apache.activemq.xbean.XBeanBrokerFactory | main
  2011-03-23 10:20:12,763 | INFO  | Refreshing
  org.apache.activemq.xbean.XBeanBrokerFactory$1@1edc073: startup date
 [Wed
  Mar 23 10:20:12 UTC 2011]; root of context hierarchy |
  org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
  2011-03-23 10:20:13,156 | INFO  | Loading XML bean definitions from file
  [/home/data/apache-activemq-5.4.2/conf/activemq-security.xml] |
  org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main
  2011-03-23 10:20:15,108 | INFO  | Loading XML bean definitions from file
  [/home/data/apache-activemq-5.4.2/conf/jetty.xml] |
  org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main
  2011-03-23 10:20:15,546 | INFO  | Loading XML bean definitions from file
  [/home/data/apache-activemq-5.4.2/conf/camel.xml] |
  org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader | main
  2011-03-23 10:20:15,870 | INFO  | camel-osgi.jar/camel-spring-osgi.jar
 not
  detected in classpath |
  org.apache.camel.spring.handler.CamelNamespaceHandler | main
  2011-03-23 10:20:15,870 | DEBUG | Using
  org.apache.camel.spring.CamelContextFactoryBean as
  CamelContextBeanDefinitionParser |
  org.apache.camel.spring.handler.CamelNamespaceHandler | main
  2011-03-23 10:20:18,764 | DEBUG | Registered default:
  org.apache.camel.spring.CamelProducerTemplateFactoryBean with id:
 template
  on camel context: camel |
  org.apache.camel.spring.handler.CamelNamespaceHandler | main
  2011-03-23 10:20:18,764 | DEBUG | Registered default:
  org.apache.camel.spring.CamelConsumerTemplateFactoryBean with id:
  consumerTemplate on camel context: camel |
  org.apache.camel.spring.handler.CamelNamespaceHandler | main
  2011-03-23 10:20:18,964 | DEBUG | Bean factory for
  org.apache.activemq.xbean.XBeanBrokerFactory$1@1edc073:
 
 org.springframework.beans.factory.support.DefaultListableBeanFactory@57ae58
  :
  defining beans
 
 
 [environmentVariablesConfiguration,configurationEncryptor,propertyConfigurer,org.apache.activemq.xbean.XBeanBrokerService#0,org.apache.activemq.broker.util.CommandAgent#0,securityLoginService,securityConstraint,securityConstraintMapping,securityHandler,contexts,Server,template,consumerTemplate,camel:beanPostProcessor,camel,activemq];
  root of factory hierarchy |
 org.apache.activemq.xbean.XBeanBrokerFactory$1
  |
  main
  2011-03-23 10:20:19,473 | INFO  | Loading properties file from URL
  [file:/home/data/activemq/conf/credentials-enc.properties] |
  org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer |
  main
 
 
 
 
  --
  Daniele Dellafiore
  http://danieledellafiore.net
 



ActiveMQ not starting - Local host name unknown

2008-04-21 Thread shekar

When trying to run activemq from bin directory, i am getting the following
error message: 
Error: Exception thrown by the agent : java.net.MalformedURLException: Local
host name unknown: java.net.UnknownHostException: mysql: mysql

Can anybody let me know what's with this!!!
-- 
View this message in context: 
http://www.nabble.com/ActiveMQ-not-starting---Local-host-name-unknown-tp16807262s2354p16807262.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



Re: ActiveMQ not starting - Local host name unknown

2008-04-21 Thread Dejan Bosanac
It seems to me that you have a wrong JDBC url (mysql) in your configuration.
Can you provide a configuration you are using?

Thanks
-- 
Dejan Bosanac
www.scriptinginjava.net

On Mon, Apr 21, 2008 at 1:22 PM, shekar [EMAIL PROTECTED] wrote:


 When trying to run activemq from bin directory, i am getting the following
 error message:
 Error: Exception thrown by the agent : java.net.MalformedURLException:
 Local
 host name unknown: java.net.UnknownHostException: mysql: mysql

 Can anybody let me know what's with this!!!
 --
 View this message in context:
 http://www.nabble.com/ActiveMQ-not-starting---Local-host-name-unknown-tp16807262s2354p16807262.html
 Sent from the ActiveMQ - User mailing list archive at Nabble.com.




Re: ActiveMQ not starting - Local host name unknown

2008-04-21 Thread Fred D

Hi 

Not sure which release you are attempting to run.
As well, what is the structure of the command you are issuing.
For a simple test run, out of the box just issuing activemq should just
start a broker with a default setup.

If you are looking to give ActiveMQ a try, perhaps pick a stable release
like 5.0.0 or 5.1.0.
Perhaps your package has become corrupt. It might be best(quicker) to clean
up and just download a fresh release and try again.

Fred

-
Goto www.ttmsolutions.com for a free ActiveMQ user guide 
-- 
View this message in context: 
http://www.nabble.com/ActiveMQ-not-starting---Local-host-name-unknown-tp16807262s2354p16808260.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.