Can't create ActiveMQ broker
simplex-software Jun 15, 2012 1:28 PMGreetings,
I created a broker with the command:
activemq:create-broker --name b1 --type spring
This created a config file for the broker in the deploy directory listening on 61616. But the broker didn't start as there is no process listening on 61616. Looking in the log file I got the following:
19:08:45,199 | INFO | ExtenderThread-2 | XmlBeanDefinitionReader | ? ? | 73 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from URL bundle://446.0:0/META-INF/spring/b1-broker.xml
19:08:45,758 | INFO | ExtenderThread-2 | DependencyServiceManager | ? ? | 84 - org.springframework.osgi.extender - 1.2.1 | OsgiBundleXmlApplicationContext(bundle=b1-broker.xml, config=osgibundle:/META-INF/spring/*.xml) is waiting for u
nsatisfied dependencies [[&transactionManager]]
19:13:45,760 | WARN | Timer-0 | WaiterApplicationContextExecutor | ? ? | 84 - org.springframework.osgi.extender - 1.2.1 | Timeout occurred before finding service dependencies for [OsgiBundleXmlApplicationContext(bundle=b1-broker.xml,
config=osgibundle:/META-INF/spring/*.xml)]
19:13:45,762 | ERROR | Timer-0 | WaiterApplicationContextExecutor | ? ? | 84 - org.springframework.osgi.extender - 1.2.1 | Unable to create application context for , unsatisfied dependencies: Dependency on [(objectClass=
javax.transaction.TransactionManager)] (from bean )
org.springframework.context.ApplicationContextException: Application context initialization for 'b1-broker.xml' has timed out
19:13:45,763 | ERROR | Timer-0 | ContextLoaderListener | ? ? | 84 - org.springframework.osgi.extender - 1.2.1 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=b1-broker.xml, config=osgibundle:/MET
A-INF/spring/*.xml))
org.springframework.context.ApplicationContextException: Application context initialization for 'b1-broker.xml' has timed out
Trying to list the brokers with activemq:list doesn't display anything.
Why is javax.transaction.TransactionManager an unsatisfied dependency or why does the automatically generated configuration relying on a possible unsatisfied dependency ?
Many thanks in advance,
Nicolas