activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Shannon <christopher.l.shan...@gmail.com>
Subject Re: Failed to load: class path resource [activemq.xml]
Date Tue, 15 Dec 2015 18:04:04 GMT
Yup, this is correct.  commons-dbcp was upgraded to commons-dbcp2

On Tue, Dec 15, 2015 at 10:52 AM, Kai B <kai.broszat@kewill.com> wrote:

> ActiveMQ seems to come with commonc-dbcp2, so you should use
> org.apache.commons.dbcp2.BasicDataSource as your datasource:
>
>         <bean id="mysql-ds"
> class="org.apache.commons.dbcp2.BasicDataSource"
>          destroy-method="close">
>                  <property name="driverClassName"
> value="com.mysql.jdbc.Driver"/>
>                  <property name="url"
>
> value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
>                  <property name="username" value="zetes"/>
>                  <property name="password" value="zetes"/>
>                  <property name="poolPreparedStatements" value="true"/>
>         </bean>
>
>
>
> Sparg wrote
> > Hi all,
> >
> > After of implement the persistence with "MySQL"
> > (http://activemq.apache.org/jdbc-support.html)
> >
> > I'm find the next problem:
> >
> >
> ***************************************************************************
> >
> > File config: --> activemq.xml
> >
> >
> ***************************************************************************
> >
> > 2015-12-15 16:30:13,593 | WARN  | Exception encountered during context
> > initialization - cancelling refresh attempt |
> > org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain
> > org.springframework.beans.factory.BeanCreationException: Error creating
> > bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined
> in
> > class path resource [activemq.xml]: Cannot create inner bean '(inner
> > bean)#13fdf13' of type
> > [org.apache.activemq.store.jdbc.JDBCPersistenceAdapter] while setting
> bean
> > property 'persistenceAdapter'; nested exception is
> > org.springframework.beans.factory.BeanCreationException: Error creating
> > bean with name '(inner bean)#13fdf13' defined in class path resource
> > [activemq.xml]: Cannot resolve reference to bean 'mysql-ds' while setting
> > bean property 'dataSource'; nested exception is
> > org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
> > find class [org.apache.commons.dbcp.BasicDataSource] for bean with name
> > 'mysql-ds' defined in class path resource [activemq.xml]; nested
> exception
> > is java.lang.ClassNotFoundException:
> > org.apache.commons.dbcp.BasicDataSource
> >       at
> >
> ***************************************************************************
> >
> > Could you please help me fixing this problem.
> >
> > Thanks,
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Failed-to-load-class-path-resource-activemq-xml-tp4704993p4704995.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message