Thursday, November 2, 2017

Exception on ActiveMQ: org.mule.module.launcher.DeploymentStartException: ClassNotFoundException: org.apache.activemq.ActiveMQConnectionFactory

Root Exception was: org.apache.activemq.ActiveMQConnectionFactory. Type: class java.lang.ClassNotFoundException

Solution:

For Maven Users,

If your application is mavenized, then go to POM file and add the following dependency:
 <dependency>
        <groupId>org.apache.activemq</groupId>
        <artifactId>activemq-all</artifactId>
        <version>5.14.5</version>
 </dependency>

For gradle users,

If your application is gradlized, then go to build.gradle and add the following dependency:
compile group: 'org.apache.activemq', name: 'activemq-all', version: '5.14.5'

For Others,

If your application is not mavenized, then
  1. Right click on your project
  2. click on Properties and in the properties window,
  3. click/select Java Build Path and select the tab Libraries and
  4. click on the button Add external JARS.. and
  5. select file activemq-all-x.xx.x,jar
which will be available in the root folder of the apache-activemq folder.

Resource Link:

No comments:

Post a Comment