apache-karaf - 如何修复:“状态:GracePeriod 蓝图缺少依赖项:(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)”
问题描述
我使用骆驼原型蓝图构建了一个捆绑包。但是部署到 ServiceMix 后,它并没有运行,一直处于 GracePeriod 状态。日志中没有错误:显示。调用 bundle:diag 会导致:“状态:GracePeriod Blueprint 缺少依赖项:(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace= http://camel.apache.org/schema /蓝图))”。
<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>
解决方案
您需要在容器上安装骆驼蓝图功能
推荐阅读
- java - 使用手机查询数据时数据丢失
- html - 仅在桌面上重新排列引导导航栏中的浮动 li 元素
- angularjs - 手动导航在 AngularJS 1.7 的 ui-router 中不起作用
- mongodb - 至少一个在 mongodb
- jquery - 如果在引导下拉列表中未找到结果,则附加自定义选项(选择选择器)
- java - 将 MadelAndObject 属性传递给子 jsp 页面
- javascript - 由 npx/node/npm 执行的 google 闭包编译器
- aws-lambda - 用 grafana 可视化 lambda 日志?
- python - OpenCV,Numpy,有效地计算满足任意标准的像素数作为所有通道的函数
- sed - csh:设置:不匹配