I was able to solve it by:
using
ACTIVEMQ_HOME/bin/activemq console xbean:file:activemq-conf/activemq.xml
This will show a verbose log when starting activemq.
Then I saw this error:
One of '{"http:
//activemq.apache.org/schema/core":taskRunnerFactory,
"http://activemq.apache.org/schema/core":tempDataStore,
"http://activemq.apache.org/schema/core":transport
ConnectorURIs, "http://activemq.apache.org/schema/core":transportConnectors,
WC[##other:"http://activemq.apache.org/schema/core"]}' is expected.
I read on the activemq docs page:
"Beginning in ActiveMQ 5.4, the XML elements inside the <broker> element
must be ordered alphabetically"
aye, so I moved the plugins tag before the transportConnectors and it's
working now.
Hope this helps someone with a similar problem!
Tommy
On Tue, Mar 22, 2011 at 1:23 PM, Tommy Chheng <[email protected]>wrote:
> I'm trying to add simpleAuthenticationPlugin via activemq.xml but the
> activemq process is failing to start.
>
> This is the activemq.xml file i'm using: https://gist.github.com/881965
>
> If i comment out the
> <plugins><simpleAuthenticationPlugin>..</simpleAuthenticationPlugin></plugins>,
> activemq starts up correctly.
>
> I'm using the activemq binary to startup:
> ACTIVEMQ_HOME/bin/activemq start xbean:file:activemq-conf/activemq.xml
>
> The activemq.log is just one line when i try launching:
> it just says:
> 2011-03-22 13:21:02,799 | INFO | Refreshing
> org.apache.activemq.xbean.XBeanBrokerFactory$1@23abcc03: startup date [Tue
> Mar 22 13:21:02 PDT 2011]; root of context hierarchy |
> org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
>
> --
> @tommychheng
> http://tommy.chheng.com
>
>
--
@tommychheng
http://tommy.chheng.com