【问题标题】:Fuse 7.1.0 - Blueprint- Bundle entering grace period : Missing dependencies error : cxf-rt-transports-http-jettyFuse 7.1.0 - Blueprint- Bundle 进入宽限期:缺少依赖项错误:cxf-rt-transports-http-jetty
【发布时间】: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 论坛上查看了一些可用的解决方案。仍然没有运气。有人可以帮忙吗?

【问题讨论】:

    标签: jbossfuse blueprint-osgi


    【解决方案1】:

    Fuse 7 正式支持 undertow 而不是 jetty。 Jetty 服务器端被列入黑名单。请检查 cxf-rt-transports-http-undertow。

    【讨论】:

    • 尝试将其添加为依赖项,但结果相同。我将 cxf-rt-transports-http-jetty 添加到 build.plugins.plugin.configuration.instructions.Embed-Dependency,现在捆绑状态从“宽限期”更改为“已安装”。
    • 日志现在显示 org.osgi.framework.BundleException: Unable to resolve bundle-name-xyz [228](R 228.18): missing requirements [bundle-name-xyz [228](R 228.18 )] osgi.wiring .package; (&(osgi.wiring.package=org.springframework.context)(version>=3.0.0)(!(version>=4.0.0)))
    • 所以您缺少弹簧功能/捆绑包。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-25
    • 1970-01-01
    • 2013-06-29
    • 2018-09-20
    • 2014-12-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多