【发布时间】:2019-02-15 11:28:06
【问题描述】:
我的捆绑包正在进入宽限期,但出现以下错误:
karaf@root()> 捆绑:诊断
BundleNameXYZ [bundle-name-xyz] (228)
状态:GracePeriod 蓝图 2/15/19 下午 4:31 缺少依赖项: (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://cxf.apache.org/transports/http-jetty/configuration)) 声明式服务 CdiOsgi
我的 blueprint.xml 文件包含
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xmlns:camel="http://camel.apache.org/schema/blueprint" xmlns:http-jetty="http://cxf.apache.org/transports/http-jetty/configuration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sec="http://cxf.apache.org/configuration/security"
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
http://cxf.apache.org/transports/http-jetty/configuration http://cxf.apache.org/schemas/configuration/http-jetty.xsd
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd">
.......
我已经尝试安装必要的功能,例如 camel-jetty-common、camel-jetty9、camel-cxf-transport。还尝试在 pom.xml 中添加提供的范围,如
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<scope>provided</scope>
</dependency>
在 JBoss 和 stackoverflow 论坛上查看了一些可用的解决方案。仍然没有运气。有人可以帮忙吗?
【问题讨论】: