2 Replies Latest reply on Jan 20, 2014 4:46 AM by flangel

    Waiting for namespace handler, even though it is available.

      Can anyone tell me why my bundle is entering into GracePeriod here:

       

      camel-blueprint exposes the camel blueprint namespace:

       

      JBossFuse:karaf@root> list | grep 135
      [ 135] [Active     ] [Created     ] [       ] [   50] camel-blueprint (2.10.0.redhat-60024)
      JBossFuse:karaf@root> ls 135
      
      
      camel-blueprint (135) provides:
      -------------------------------
      objectClass = org.apache.aries.blueprint.NamespaceHandler
      osgi.service.blueprint.namespace = http://camel.apache.org/schema/blueprint
      service.id = 353
      
      

       

      But my bundle is in a GracePeriod waiting for it:

       

      14:07:14,721 | INFO  | NAPSHOT-thread-1 | BlueprintContainerImpl           | 22 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Bundle com.mycompany.mybundle is waiting for namespace handlers [http://camel.apache.org/schema/blueprint]
      14:07:14,721 | DEBUG | NAPSHOT-thread-1 | BlueprintEventDispatcher         | 22 - org.apache.aries.blueprint.core - 1.0.1.redhat-60024 | Sending blueprint container event BlueprintEvent[type=GRACE_PERIOD, dependencies=[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://camel.apache.org/schema/blueprint))]] for bundle com.mycompany.mybundle
      
      

       

      Definition of the namespace in my bundle's blueprint:

       

          <camelContext id="myRoute" trace="false" xmlns="http://camel.apache.org/schema/blueprint"
              xsi:schemaLocation="http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint-2.10.0.xsd">
              <routeBuilder ref="myRouteBuilder" />
          </camelContext>