首页 > 解决方案 > 向 Wildfly 23 添加 smallrye 跟踪

问题描述

我正在尝试使用 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 月...

标签: wildflymicroprofileopentracingsmallrye

解决方案


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


推荐阅读