【问题标题】:Adding smallrye tracing to Wildfly 23向 Wildfly 23 添加 smallrye 跟踪
【发布时间】:2021-09-10 08:00:05
【问题描述】:

我正在尝试使用 Thins 指南将 microprofile opentracing 子系统添加到 Wildfly23:https://github.com/wildfly/wildfly/blob/main/docs/src/main/asciidoc/_admin-guide/subsystem-configuration/MicroProfile_OpenTracing_SmallRye.adoc

但是,第二步失败了:

[standalone@localhost:9990 /] /subsystem=microprofile-opentracing-smallrye:add
    ERROR [org.jboss.as.cli.CommandContext] {
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0369: Required capabilities are not available:
    org.wildfly.microprofile.config; There are no known registration points which can provide this capability.",
    "rolled-back" => true
}

我尝试使用此模型作为参考添加微配置文件配置:https://docs.wildfly.org/23/wildscribe/subsystem/microprofile-config-smallrye/index.html 但是我收到此错误

[standalone@localhost:9990 /] /subsystem=microprofile-config-smallrye:add
    ERROR [org.jboss.as.cli.CommandContext] {
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0030: No resource definition is registered for address [(\"subsystem\" => \"microprofile-config-smallrye\")]",
    "rolled-back" => true
}

我错过了什么?该文档似乎足够新鲜,最后一次更新是在 2021 年 3 月...

【问题讨论】:

    标签: wildfly microprofile opentracing smallrye


    【解决方案1】:

    在添加子系统之前,您还需要安装扩展“org.wildfly.extension.microprofile.config-smallrye”和“org.wildfly.extension.microprofile.opentracing-smallrye”。 此外,wildfly 提供了一个可以作为示例服务器的独立 microprofile.xml。

    【讨论】:

    • 我也尝试使用 jboss-cli 添加扩展,但由于某种原因,它就像子系统一样失败了。但是,一旦我将所需的扩展和子系统手动添加到我的standalone.xml 中,它就可以工作了。也许必须使用批处理文件同时添加它们。
    • 是的,必须加载扩展(仅在启动时 iirc)才能访问子系统
    猜你喜欢
    • 2017-10-09
    • 2013-05-25
    • 2016-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-09
    • 1970-01-01
    相关资源
    最近更新 更多