activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From novotny <novo...@gridsphere.org>
Subject spring broker doesn't work
Date Tue, 28 Aug 2007 17:21:53 GMT


Hi,

I followed instructions at
http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html

and in my spring.xml added:

<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
        <property name="config" value="conf/discovery.xml" />
        <property name="start" value="true" />
    </bean>

when spring starts up I get this error:

3:18:35 INFO  Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@871e65:
defining beans [jmsConnFactory,consumer,producer,broker]; root of factory
hierarchy

org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'broker' defined in file
[/Users/novotny/pinksheets/presence/conf/spring.xml]: Instantiation of bean
failed; nested exception is java.lang.NoClassDefFoundError
Caused by: java.lang.NoClassDefFoundError
	at
org.apache.activemq.xbean.BrokerFactoryBean.class$(BrokerFactoryBean.java:45)
	at
org.apache.activemq.xbean.BrokerFactoryBean.<clinit>(BrokerFactoryBean.java:48)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
	at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:756)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:721)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:384)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
-- 
View this message in context: http://www.nabble.com/spring-broker-doesn%27t-work-tf4343003s2354.html#a12372158
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message