ClassNotFoundException while using camel-quartz2 component

Solution Verified - Updated -

Issue

  • While using Fuse 6.1 in fabric mode, when I deploy an application which is using camel-quartz2 component. It throws ClassNotFoundException
Caused by: java.lang.IllegalArgumentException: Cannot load org.apache.camel.pollconsumer.quartz2.QuartzScheduledPollConsumerScheduler from classpath. Make sure camel-quarz2.jar is on the classpath.
    at org.apache.camel.impl.ScheduledPollEndpoint.configureScheduledPollConsumerProperties(ScheduledPollEndpoint.java:141)[121:org.apache.camel.camel-core:2.12.0.redhat-610379]
    at org.apache.camel.impl.ScheduledPollEndpoint.configureProperties(ScheduledPollEndpoint.java:58)[121:org.apache.camel.camel-core:2.12.0.redhat-610379]
    at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:129)[121:org.apache.camel.camel-core:2.12.0.redhat-610379]
    at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:511)[121:org.apache.camel.camel-core:2.12.0.redhat-610379]
    ... 50 more
Caused by: java.lang.ClassNotFoundException: org.apache.camel.pollconsumer.quartz2.QuartzScheduledPollConsumerScheduler
    at org.apache.camel.impl.DefaultClassResolver.resolveMandatoryClass(DefaultClassResolver.java:53)[121:org.apache.camel.camel-core:2.12.0.redhat-610379]
    at org.apache.camel.impl.ScheduledPollEndpoint.configureScheduledPollConsumerProperties(ScheduledPollEndpoint.java:138)[121:org.apache.camel.camel-core:2.12.0.redhat-610379]
    ... 53 more
  • The feature camel-quartz2 is installed and has been defined in the pom dependencies as well
  • Camel version being used is 2.12.0.redhat-610379

Environment

  • Red Hat JBoss Fuse
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content