activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmd <>
Subject error starting embedded broker
Date Tue, 06 Nov 2007 06:36:22 GMT

I get the following error when starting my app, which has an embedded broker.

ERROR [org.dmd.ClientProxy.ClientProxyDaemon.main()]
( -
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'broker' defined in class path resource [client-proxy.xml]:
Invocation of init method failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception parsing XML document from class path resource
[client-proxy-broker.xml]; nested exception is
java.lang.IllegalStateException: Unable to invoke parseNestedCustomElement
method uses AbstractApplicationContext ac = new
ClassPathXmlApplicationContext("client-proxy.xml"); to configure the Spring

client-proxy.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns=""

    <!-- Create an embedded broker and configure it -->
    <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
        <property name="config" value="xbean:client-proxy-broker.xml"/>
        <property name="start" value="true" />

    <bean id="connectionFactory"
        <property name="brokerURL" value="vm://embedded"/>
        <property name="userName" value="system"/>
        <property name="password" value="system"/>

And the file passed to BrokerFactoryBean looks like this:

<?xml version="1.0" encoding="UTF-8"?>

    <!-- Allows us to use system properties as variables in this
configuration file -->

	<broker xmlns="" useJmx="false"
persistent="false" brokerName="embedded" populateJMSXUserID="true">

			<transportConnector uri="tcp://localhost:61616" />

		    <!-- we'll replace this with JAAS later -->
					<authenticationUser username="system"
						password="system" groups="users, admins" />
					<authenticationUser username="user1"
						password="password1" groups="users" />
					<authenticationUser username="user2"
						password="password2" groups="users" />

			<!--  lets configure a destination based authorization mechanism -->
						  <authorizationEntry queue=">" read="admins" write="admins"
admin="admins" />
						  <authorizationEntry queue="org.dmd.>" read="admins" write="users"
admin="admins" />
						  <authorizationEntry topic="ActiveMQ.Advisory.>" read="users"
write="admins" admin="admins" />



So, what is the custom element in this case?  Is it the <broker
xmlns="" useJmx="false" persistent="false"
brokerName="embedded" populateJMSXUserID="true">?  What can I do about this?

Any help would be appreciated.


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message