No bean could be found in the registry for: quartz of type: org.apache.camel.spi.ScheduledPollConsumerScheduler

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

No bean could be found in the registry for: quartz of type: org.apache.camel.spi.ScheduledPollConsumerScheduler

dimas
Hi All,

I'm following the example of using Polling Consumer scheduler in https://camel.apache.org/components/latest/quartz-component.html, here is the route

from(file://inbox?scheduler=quartz&scheduler.cron= 0 * * ? * * *<file:///\\inbox?scheduler=quartz&scheduler.cron=%200%20*%20*%20?%20*%20*%20*>).log("it works")

it fails with:
org.apache.webbeans.portable.events.discovery.ErrorStack.logErrors Failed to create route ... due to: No bean could be found in the registry for: quartz of type: org.apache.camel.spi.ScheduledPollConsumerScheduler

camel-core and camel-quartzs are in pom.xml  there is also another quartz2 route that starts fine.

What I'm missing?

The runtime is TomEE 7.0.6 (CDI), Camel 2.25.1

Cheers,
Dmitry
Reply | Threaded
Open this post in threaded view
|

Re: No bean could be found in the registry for: quartz of type: org.apache.camel.spi.ScheduledPollConsumerScheduler

Claus Ibsen-2
Hi

You are using Camel 2.x and looking at the documentation for "latest"
which is Camel 3.x.
Change the docs to 2.x, there is a drop down in the bottom left corner.

On Thu, May 7, 2020 at 2:33 AM Shultz, Dmitry <[hidden email]> wrote:

>
> Hi All,
>
> I'm following the example of using Polling Consumer scheduler in https://camel.apache.org/components/latest/quartz-component.html, here is the route
>
> from(file://inbox?scheduler=quartz&scheduler.cron= 0 * * ? * * *<file:///\\inbox?scheduler=quartz&scheduler.cron=%200%20*%20*%20?%20*%20*%20*>).log("it works")
>
> it fails with:
> org.apache.webbeans.portable.events.discovery.ErrorStack.logErrors Failed to create route ... due to: No bean could be found in the registry for: quartz of type: org.apache.camel.spi.ScheduledPollConsumerScheduler
>
> camel-core and camel-quartzs are in pom.xml  there is also another quartz2 route that starts fine.
>
> What I'm missing?
>
> The runtime is TomEE 7.0.6 (CDI), Camel 2.25.1
>
> Cheers,
> Dmitry



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Reply | Threaded
Open this post in threaded view
|

Re: No bean could be found in the registry for: quartz of type: org.apache.camel.spi.ScheduledPollConsumerScheduler

dimas
This is what I like about Camel - learn something new every time (even how you consume the docs:)

Thanks Claus!
________________________________
From: Claus Ibsen <[hidden email]>
Sent: 06 May 2020 21:48
To: [hidden email] <[hidden email]>
Subject: Re: No bean could be found in the registry for: quartz of type: org.apache.camel.spi.ScheduledPollConsumerScheduler

Hi

You are using Camel 2.x and looking at the documentation for "latest"
which is Camel 3.x.
Change the docs to 2.x, there is a drop down in the bottom left corner.

On Thu, May 7, 2020 at 2:33 AM Shultz, Dmitry <[hidden email]> wrote:

>
> Hi All,
>
> I'm following the example of using Polling Consumer scheduler in https://urldefense.com/v3/__https://camel.apache.org/components/latest/quartz-component.html__;!!LdWlNaMnLCM!NsPWj32RhLLU2nJ4k66mIrt8LFgmuXwRBAvsUtW2Bnk1LQ2pMtdvsm6W2UQIj8EA474s$ , here is the route
>
> from(file://inbox?scheduler=quartz&scheduler.cron= 0 * * ? * * *<file:///%5C%5Cinbox?scheduler=quartz&scheduler.cron=%200%20*%20*%20?%20*%20*%20*>).log("it works")
>
> it fails with:
> org.apache.webbeans.portable.events.discovery.ErrorStack.logErrors Failed to create route ... due to: No bean could be found in the registry for: quartz of type: org.apache.camel.spi.ScheduledPollConsumerScheduler
>
> camel-core and camel-quartzs are in pom.xml  there is also another quartz2 route that starts fine.
>
> What I'm missing?
>
> The runtime is TomEE 7.0.6 (CDI), Camel 2.25.1
>
> Cheers,
> Dmitry



--
Claus Ibsen
-----------------
https://urldefense.com/v3/__http://davsclaus.com__;!!LdWlNaMnLCM!NsPWj32RhLLU2nJ4k66mIrt8LFgmuXwRBAvsUtW2Bnk1LQ2pMtdvsm6W2UQIjzk9exJ0$  @davsclaus
Camel in Action 2: https://urldefense.com/v3/__https://www.manning.com/ibsen2__;!!LdWlNaMnLCM!NsPWj32RhLLU2nJ4k66mIrt8LFgmuXwRBAvsUtW2Bnk1LQ2pMtdvsm6W2UQIj6X2A-YZ$