activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shahzad Bhatti <bha...@plexobject.com>
Subject Embedded ActiveMQ in Spring throws java.lang.ClassNotFoundException
Date Tue, 01 Aug 2006 19:21:10 GMT

I am using ActiveMQ 4.1 and defining embedded broker in my spring file as 
    <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
      <property name="config" value="classpath:tbs-activemq.xml" />
      <property name="start" value="true" />
    </bean>
However, it can't find org.apache.xbean.spring.context.impl.URIEditor. I
could not
find it in activemq's jar files. Any ideas?

Here is full stack trace:


    [junit] Caused by:
org.springframework.beans.factory.BeanDefinitionStoreException: Err
or registering bean with name 'broker' defined in class path resource
[TBSMessagingOrbitzB
eans.xml]: Class that bean class
[org.apache.activemq.xbean.BrokerFactoryBean] depends on
not found; nested exception is java.lang.NoClassDefFoundError
    [junit]     at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBe
anClass(AbstractBeanFactory.java:917)
    [junit]     at
org.springframework.beans.factory.support.DefaultListableBeanFactory.ge
tBeanNamesForType(DefaultListableBeanFactory.java:138)
    [junit]     at
org.springframework.context.support.AbstractApplicationContext.getBeanN
amesForType(AbstractApplicationContext.java:652)
    [junit]     at
org.springframework.context.support.AbstractApplicationContext.invokeBe
anFactoryPostProcessors(AbstractApplicationContext.java:382)
    [junit]     at
org.springframework.context.support.AbstractApplicationContext.refresh(
AbstractApplicationContext.java:314)
    [junit]     at
org.springframework.context.support.ClassPathXmlApplicationContext.<ini
t>(ClassPathXmlApplicationContext.java:92)
    [junit]     at
org.springframework.context.support.ClassPathXmlApplicationContext.<ini
t>(ClassPathXmlApplicationContext.java:77)
    [junit]     at
com.orbitz.tbs.host.txn.messaging.MessageSenderTest.<clinit>(MessageSen
derTest.java:8)
    [junit]     ... 6 more
    [junit] Caused by: java.lang.NoClassDefFoundError
    [junit]     at
org.apache.activemq.xbean.BrokerFactoryBean.class$(BrokerFactoryBean.ja
va:42)
    [junit]     at
org.apache.activemq.xbean.BrokerFactoryBean.<clinit>(BrokerFactoryBean.
java:45)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:242)
    [junit]     at
org.springframework.util.ClassUtils.forName(ClassUtils.java:160)
    [junit]     at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolv
eBeanClass(AbstractBeanDefinition.java:320)
    [junit]     at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBe
anClass(AbstractBeanFactory.java:910)
    [junit]     ... 13 more
    [junit] Caused by: java.lang.ClassNotFoundException:
org.apache.xbean.spring.context.impl.URIEditor
    [junit]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    [junit]     at java.security.AccessController.doPrivileged(Native
Method)
    [junit]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [junit]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [junit]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:164)


-- 
View this message in context: http://www.nabble.com/Embedded-ActiveMQ-in-Spring-throws-java.lang.ClassNotFoundException-tf2035683.html#a5601291
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message