activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohnny Moland <rmol...@gmail.com>
Subject Re: Using embedded broker with spring in activemq 4.0.1
Date Mon, 26 Jun 2006 06:17:48 GMT
Ok, so if I use svn head of activemq and xbean, is that enough to use
activemq with spring 2.x? Seems like svn head of xbean currently is in
version 2.3-snapshot.

Regards,
Rohnny

James Strachan wrote:
> Yeah - for spring 2.0 M4 or rc1 or later you need xbean-spring 2.4
> jars. We'll do a release soon of ActiveMQ with spring 2.x
> 
> On 6/23/06, Rohnny Moland <rmoland@gmail.com> wrote:
>> Hi,
>>
>> Trying to setup an embedded broker in activemq 4.0.1 using spring
>> 2.0-rc1 I get this error:
>>
>> Exception in thread "main"
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'broker' defined in class path resource
>> [serverContext.xml]: Invocation of init method failed; nested exception
>> is java.lang.NoClassDefFoundError:
>> org/springframework/beans/factory/xml/DefaultXmlBeanDefinitionParser
>> Caused by: java.lang.NoClassDefFoundError:
>> org/springframework/beans/factory/xml/DefaultXmlBeanDefinitionParser
>>         at
>> org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:87)
>>         at
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:278)
>>         at
>> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
>>         at
>> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
>>         at
>> org.apache.activemq.xbean.BrokerFactoryBean.afterPropertiesSet(BrokerFactoryBean.java:76)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:901)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:870)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:393)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:257)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
>>         at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:248)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:332)
>>         at
>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
>>         at
>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
>>         at
>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
>>         at com.corporater.transformer.remoting.JmsServer.main(JmsServer.java:13)
>>
>>
>> Am I using wrong version of xbean-spring or something? Currently using 2.2.
>>
>> Thanks in advance,
>> Rohnny
>>
> 
> 


Mime
View raw message