1 Reply Latest reply on Feb 16, 2016 2:52 AM by Yogesh Naravane

    Fuse waiting for dependencies

    Gaurav Sharma Newbie

      I am trying to deploy a simple CFX Rest example but I am getting the following error in the fuse log and the service is not exposed.

       

      21:26:40,009 | INFO  | rint Extender: 2 | BlueprintContainerImpl    | 21 - org.apache.aries.blueprint.core - 1.4.2 | Bundle camel-blueprint-cxf is waiting for dependencies [(&(dataformat=json-jackson)(objectClass=org.apache.camel.spi.DataFormatResolver))]

       

      Here is what I am seeing in osgi:list commend :

       

      [ 141] [Active] [     ] [] [   80] Jackson-JAXRS-base (2.4.3)
      [ 142] [Active] [     ] [] [   80] Jackson-JAXRS-JSON (2.4.3)
      [ 143] [Active] [     ] [] [   80] Jackson-module-JAXB-annotations (2.4.3)

       

      And following is the blueprint XML I am trying to deploy:

      <?xml version="1.0" encoding="UTF-8"?>

      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"

             xmlns:camel="http://camel.apache.org/schema/blueprint"

             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

             xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf"

             xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd

             http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">

       

      <cxf:rsServer     id="rsServer" address="http://0.0.0.0:7777/testendpoint"

                       serviceClass="com.mycompany.camel.blueprint.cxf.Endpoint" loggingFeatureEnabled="true" />

       

        <camelContext trace="true" id="blueprintContext" xmlns="http://camel.apache.org/schema/blueprint">

        <route id="cxfrs.service">

          <from uri="cxfrs:bean:rsServer?bindingStyle=Default"/>

          <log message="The message contains ${body[0]}"/>

            <marshal>

              <json library="Jackson"/>

          </marshal>

        </route>

      </camelContext>

       

      </blueprint>