activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <bruce.sny...@gmail.com>
Subject Re: activemq with oracle persistence - still looks for derby?
Date Mon, 20 Jul 2009 20:51:58 GMT
On Fri, Jul 17, 2009 at 5:53 PM, tide08<sachin2_2k@yahoo.com> wrote:
>
> I have activemq configured to run with spring in embedded mode. I also have
> also added journaling and oracle persistence but activemq still keeps on
> looking for derby somehow?
>
> <amq:broker id="jmsBroker" useJmx="false" persistent="true"
> dataDirectory="${scheduling.jms.datadirectory}">
>        <amq:persistenceAdapter>
>            <amq:journaledJDBC journalLogFiles="5"
> dataDirectory="${scheduling.jms.datadirectory}"
> dataSource="#jmsUtilDataSource" />
>        </amq:persistenceAdapter>
>
>        <amq:transportConnectors>
>            <amq:transportConnector uri="tcp://localhost:0" />
>        </amq:transportConnectors>
>    </amq:broker>
>
>
>
>
> Derby seems to be optional dependency for 5.2.0 so why am I seeing below
> error. Can someone please help?
>
> Cannot create inner bean '(inner bean)' of type
> [org.apache.activemq.store.PersistenceAdapterFactoryBean] while setting bean
> property 'persistenceAdapter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name '(inner bean)': FactoryBean threw exception on object creation;
> nested exception is java.lang.NoClassDefFoundError:
> org/apache/derby/jdbc/EmbeddedDataSource
> Caused by:
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name '(inner bean)': FactoryBean threw exception on object creation;
> nested exception is java.lang.NoClassDefFoundError:
> org/apache/derby/jdbc/EmbeddedDataSource
> Caused by:
> java.lang.NoClassDefFoundError: org/apache/derby/jdbc/EmbeddedDataSource
>        at
> org.apache.activemq.store.jdbc.DataSourceSupport.createDataSource(DataSourceSupport.java:86)
>        at
> org.apache.activemq.store.jdbc.DataSourceSupport.getDataSource(DataSourceSupport.java:67)
>        at
> org.apache.activemq.store.journal.JournalPersistenceAdapterFactory.createPersistenceAdapter(JournalPersistenceAdapterFactory.java:58)
>        at
> org.apache.activemq.store.PersistenceAdapterFactoryBean.getObject(PersistenceAdapterFactoryBean.java:35)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.getObjectFromFactoryBean(AbstractBeanFactory.java:1246)
>        at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:221)
>        at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1100)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
>        at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:339)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
>        at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:


Well, it's clearly looking for Derby. Please provide the full
configuration including the definition of the bean whose name is
jmsUtilDataSource.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Mime
View raw message