With nested exceptions, the deepest-nested one (the one at the bottom of the list) is the actual problem. So for your stack traces, the actual problem is java.lang.NoClassDefFoundError: org/bson/codecs/Decoder
Googling for that, this is the first hit: http://stackoverflow.com/questions/29729331/how-to-resolve-classnotfoundexception-com-mongodb-connection-bufferprovider Hopefully that link helps; if not you can do your own search. Either way, your problem is related to MongoDB, not ActiveMQ, so if you have further questions, ask them, not us. On May 25, 2016 3:59 AM, "bmo" <baraa.moha...@yansys-medical.fr> wrote: > I'm trying to deploy a jwebsocket cluster which uses activemq cluster. I've > configured my activemq.xml as in the attached file. I've added the needed > plugins : jWebSocketActiveMQPlugIn-1.0.jar,jWebSocketJMSPlugIn-1.0.jar, > mongodb-driver-3.2.2.jar to my lib folder in the activemq installation > folder. When I try to "./activemq start" I get the following errors in the > log file. Error creating bean with name > 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path > resource [activemq.xml]: Cannot create inner bean 'jwsClusterPlugIn' of > type > [org.jwebsocket.amq.AMQClusterPlugIn] while setting bean property 'plugins' > with key [0]; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name 'jwsClusterPlugIn' defined in class path resource [activemq.xml]: > Cannot create inner bean 'mongodbConnection0' of type > [com.mongodb.MongoClient] while setting bean property 'mongo'; nested > exception is org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'mongodbConnection0' defined in class path resource > [activemq.xml]: Resolution of declared constructors on bean Class > [com.mongodb.MongoClient] from ClassLoader > [java.net.URLClassLoader@39582e88] failed; nested exception is > java.lang.NoClassDefFoundError: org/bson/codecs/Decoder | > org.apache.activemq.xbean.XBeanBrokerFactory$1 | mainError creating bean > with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class > path resource [activemq.xml]: Cannot create inner bean 'jwsClusterPlugIn' > of > type [org.jwebsocket.amq.AMQClusterPlugIn] while setting bean property > 'plugins' with key [0]; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name 'jwsClusterPlugIn' defined in class path resource [activemq.xml]: > Cannot create inner bean 'mongodbConnection0' of type > [com.mongodb.MongoClient] while setting bean property 'mongo'; nested > exception is org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'mongodbConnection0' defined in class path resource > [activemq.xml]: Resolution of declared constructors on bean Class > [com.mongodb.MongoClient] from ClassLoader > [java.net.URLClassLoader@39582e88] failed; nested exception is > java.lang.NoClassDefFoundError: org/bson/codecs/Decoder | > org.apache.activemq.xbean.XBeanBrokerFactory | mainError creating bean with > name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path > resource [activemq.xml]: Cannot create inner bean 'jwsClusterPlugIn' of > type > [org.jwebsocket.amq.AMQClusterPlugIn] while setting bean property 'plugins' > with key [0]; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating > bean > with name 'jwsClusterPlugIn' defined in class path resource [activemq.xml]: > Cannot create inner bean 'mongodbConnection0' of type > [com.mongodb.MongoClient] while setting bean property 'mongo'; nested > exception is org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'mongodbConnection0' defined in class path resource > [activemq.xml]: Resolution of declared constructors on bean Class > [com.mongodb.MongoClient] from ClassLoader > [java.net.URLClassLoader@39582e88] failed; nested exception is > java.lang.NoClassDefFoundError: org/bson/codecs/DecoderI can post the whole > error message of needed. I don't know what I'm doing wrong and I really > need > your help please, Thanks in advance, Baraa > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/activemq-cluster-Error-creating-bean-with-name-org-apache-activemq-xbean-XBeanBrokerService-0-tp4712344.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.