1 Reply Latest reply on Mar 15, 2014 4:02 PM by benjamin.fayle

    JBoss Fuse 6.1-redhat-355 "waiting for dependencies" using Camel Quartz in blueprint

    benjamin.fayle

      I have simple route that uses the Camel Quartz component.

       

      It uses this dependency in the POM:

       

            <dependency>
              <groupId>org.apache.camel</groupId>
              <artifactId>camel-quartz</artifactId>
            </dependency>
      


      It uses a Java DSL routebuilder with a configuration like this:


      from("quartz2://processTest?cron=0+02+12+?+*+*")
      


      It builds and deploys fine but JBoss Fuse says this in the logs:


      Bundle my.poc.esb.example is waiting for dependencies [(&(component=quartz2)(objectClass=org.apache.camel.spi.ComponentResolver))]

       

      What do I need to do to get JBoss Fuse to resolve this dependency?

        • 1. Re: JBoss Fuse 6.1-redhat-355 "waiting for dependencies" using Camel Quartz in blueprint
          benjamin.fayle

          I resolved this problem. I accidentally installed the feature camel-quartz instead of camel-quartz2.

           

          I uninstalled camel-quartz but when I tried installing the feature quartz2 I got this error:

           

          JBossFuse:karaf@root> features:install camel-quartz2

          Error executing command: Could not start bundle mvn:org.quartz-scheduler/quartz/2.2.1 in feature(s) camel-quartz2-2.12.0.redhat-610355: Uses constraint violation. Unable to resolve bundle revision org.quartz-scheduler.quartz [314.0] because it exports package 'org.quartz.core.jmx' and is also exposed to it from bundle revision org.apache.servicemix.bundles.quartz [305.0] via the following dependency chain:

           

            org.quartz-scheduler.quartz [314.0]

              import: (osgi.wiring.package=org.quartz.jobs)

              |

              export: osgi.wiring.package=org.quartz.jobs; uses:=org.quartz.core.jmx

              export: osgi.wiring.package=org.quartz.core.jmx

            org.apache.servicemix.bundles.quartz [305.0]

           

          In the end I resolved things by starting with a fresh Jboss Fuse install and running features:install camel-quartz2

           

          There is probably a more efficient approach but at least I'm not blocked.