如何解决:“状态:GracePeriod蓝图缺少依赖项:(&(objectClass = org.apache.aries.blueprint.NamespaceHandler)”

时间:2019-02-13 13:10:01

标签: apache-karaf apache-servicemix karaf blueprint-osgi

我使用camel-archetype-blueprint构建了一个包。  但是在部署到ServiceMix之后,它尚未运行并保持在GracePeriod状态。  log:display中没有错误。  调用bundle:diag会导致:  “状态:GracePeriod蓝图缺少依赖项:  (&(objectClass = org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace = http://camel.apache.org/schema/blueprint)))。

    <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
   xsi:schemaLocation="
     http://www.osgi.org/xmlns/blueprint/v1.0.0 
     https://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
     http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 
     http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd">

<cm:property-placeholder
    persistent-id="HelloBean" update-strategy="reload">
    <cm:default-properties>
        <cm:property name="greeting" value="Hi from Camel" />
    </cm:default-properties>
</cm:property-placeholder>

<bean id="MyRouteBuilder" class="com.bpjava.tfsredmine.MyRouteBuilder" />

<camelContext id="blueprint-bean-context"
    xmlns="http://camel.apache.org/schema/blueprint">
    <routeBuilder ref="MyRouteBuilder" />
</camelContext>

1 个答案:

答案 0 :(得分:1)

您需要在容器上安装骆驼蓝图功能