DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Build a Java Backend That Connects With Salesforce
  • How to Activate New User Accounts by Email
  • Build Even Faster Quarkus Applications With fast-jar
  • Java Module Benefits With Example

Trending

  • Solving Comprehension Debt in AI-Generated Codebases
  • Avoiding AI Debt as a Team
  • OpenCode: Setting Up an Open-Source AI Coding Assistant
  • Genkit Flows as senro Steps: Extremely Powerful AI Pipelines in Go

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Coding
  3. Java
  4. How to Resolve the ''ActiveMQConnectionFactory Class Not Found'' Exception

How to Resolve the ''ActiveMQConnectionFactory Class Not Found'' Exception

This error means that your Mule application is looking for activemq supporting classes in your project and it is not finding any.

By 
Akkiraju Ivaturi
·
Dec. 26, 16 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
26.4K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

If you encounter the following error while running your Mule application, it's because it's looking for activemq supporting classes in your project and it is not finding any.

Those classes are available in activemq-all-x.xx.xx.jar file. Only add activemq-all-x.xx.jar file if your flow is very simple. Otherwise, you may want to check whatever relevant JAR files have to be added as a dependency to your project.

That is available in the root folder where you have unzipped the activemq ZIP file.

The message looks like this:

+ Failed to deploy artifact 'activemqpublisher', see below +

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

org.mule.module.launcher.DeploymentStartException: ClassNotFoundException: org.apache.activemq.ActiveMQConnectionFactory

at org.mule.module.launcher.application.DefaultMuleApplication.start(DefaultMuleApplication.java:164) ~[mule-module-launcher-3.8.0.jar:3.8.0]

at org.mule.module.launcher.artifact.ArtifactWrapper$4.execute(ArtifactWrapper.java:105) ~[mule-module-launcher-3.8.0.jar:3.8.0]

The reason should be one of the following based on how you have built the application:

  • If your application is mavenized, then go to POM file and add the following dependency

    • <dependency>

    • <groupId>org.apache.activemq</groupId>

    • <artifactId>activemq-broker</artifactId>

    • <version>5.14.0</version>

    • </dependency>

  • If your application is not Maven-ized, then right click on your project and click on Properties. In the properties window, select Java Build Path, select the tab Libraries, and click on the button Add external JARS. Select file activemq-all-x.xx.x,jar, which will be available in the root folder of the apache-activemq folder.

application Apache ActiveMQ Dependency IT Property (programming) JAR (file format) Java (programming language) Build (game engine) Library

Opinions expressed by DZone contributors are their own.

Related

  • Build a Java Backend That Connects With Salesforce
  • How to Activate New User Accounts by Email
  • Build Even Faster Quarkus Applications With fast-jar
  • Java Module Benefits With Example

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook