quartz2 scheduler.cron throwing “Cannot load org.apache.camel.pollconsume
Issue
- We have a route and
camel-quartz2bundle is available in classpath.
public void configure() throws Exception {
from("file:target/inbox?scheduler=quartz2&scheduler.cron=0+0/1+*+*+*+?")
.to("file:target/outbox");
}
- Here's how we install the project,
features:addurl mvn:TestQuartz2/TestQuartz2/1.0-SNAPSHOT/xml/features
features:refreshurl
features:install testquartz2
install -s mvn:TestQuartz2/TestQuartz2/1.0-SNAPSHOT
and we are seeing these exception from the logs files,
org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[[From[file:target/inbox?scheduler=quartz2&sche... because of Failed to resolve endpoint: file://target/inbox?scheduler=quartz2&scheduler.cron=0+0%2F1+*+*+*+%3F due to: Cannot load org.apache.camel.pollconsumer.quartz2.QuartzScheduledPollConsumerScheduler from classpath. Make sure camel-quarz2.jar is on the classpath.
Caused by: java.lang.ClassNotFoundException: org.apache.camel.pollconsumer.quartz2.QuartzScheduledPollConsumerScheduler
at org.apache.camel.impl.DefaultClassResolver.resolveMandatoryClass(DefaultClassResolver.java:53)
at org.apache.camel.impl.ScheduledPollEndpoint.configureScheduledPollConsumerProperties(ScheduledPollEndpoint.java:138)
... 73 more
Environment
- Red Hat JBoss Fuse
- 6.x
- Apache Camel
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.