【问题标题】:How to fix: "Status: GracePeriod Blueprint Missing dependencies: (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)"如何修复:“状态:GracePeriod 蓝图缺少依赖项:(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)”
【发布时间】:2019-02-13 13:10:00
【问题描述】:

我使用 camel-archetype-blueprint 构建了一个捆绑包。 但是部署到 ServiceMix 后,它并没有运行,一直处于 GracePeriod 状态。 日志中没有错误:显示。 调用 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>

【问题讨论】:

  • 您是否尝试让它运行 5-10 分钟?由于 Camel 2.16 中的错误,我遇到了类似的问题。我的捆绑包刚刚开始。

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


【解决方案1】:

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

【讨论】:

  • 此功能已安装:40 |活跃 | 50 | 2.16.5 | camel-blueprint 还有什么问题?
  • 哪个 SMX 版本?检查您是否安装了 aries-blueprint 功能。
  • 版本 7.0.1。白羊座蓝图| 4.0.9 | x |开始 |标准4.0.9 |白羊座蓝图
猜你喜欢
  • 2020-01-18
  • 2020-07-12
  • 2019-02-10
  • 2017-05-07
  • 1970-01-01
  • 2022-07-08
  • 2023-02-21
  • 2015-04-08
  • 1970-01-01
相关资源
最近更新 更多