[
https://issues.apache.org/jira/browse/AMQ-5022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timothy Bish closed AMQ-5022.
-----------------------------
Resolution: Invalid
This should go to the mailing list as its a configuration issue. You need to
change ports for sure if you want more than one broker on the same machine.
> Error while when starting multiple ActiveMQ brokers in the same machine
> -----------------------------------------------------------------------
>
> Key: AMQ-5022
> URL: https://issues.apache.org/jira/browse/AMQ-5022
> Project: ActiveMQ
> Issue Type: Bug
> Affects Versions: 5.9.0
> Reporter: Udara Liyanage
>
> I fallowed the exact steps in [1] in order to setup multiple ActiveMQ brokers
> in the same server. When I start the second instance I always get the same
> error.
> One thing I noticed is configurations on both instances are same. for
> instance configurations like port s are same in both activemq.xml and
> jetty.xml.
> I even change the ports of the second instance so it won't get crashed with
> the first intance. But I get the same Exception.
> [1]
> https://sbforge.org/display/BITMAG/Running+multiple+activemq+instances+on+the+same+server
> INFO | Apache ActiveMQ 5.9.0 (instance1, ID:udara-54224-1391513355578-0:1) is
> shutdown INFO | Closing
> org.apache.activemq.xbean.XBeanBrokerFactory$1@33e228bc: startup date [Tue
> Feb 04 06:29:14 EST 2014]; root of context hierarchy WARN | Exception thrown
> from LifecycleProcessor on context close java.lang.IllegalStateException:
> LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle
> methods via the context:
> org.apache.activemq.xbean.XBeanBrokerFactory$1@33e228bc: startup date [Tue
> Feb 04 06:29:14 EST 2014]; root of context hierarchy at
> org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)
> at
> org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1057)
> at
> org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
> at
> org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30) at
> org.apache.activemq.broker.BrokerService.stop(BrokerService.java:782) at
> org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)
> at org.apache.activemq.broker.BrokerService.start(BrokerService.java:574) at
> org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1608)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)