简体   繁体   English

WFLYCTL0362:资源“/subsystem=microprofile-metrics-smallrye”所需的功能不可用:

[英]WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-metrics-smallrye' are not available:

I am trying to migrate WildFly 21 to 24 .我正在尝试将 WildFly 21 迁移到 24 。 I have these errors in the console.我在控制台中有这些错误。 Server can not running it is stopped.服务器无法运行它已停止。

14:11:19,550 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-health-smallrye' are not available:
org.wildfly.extension.health.http-context; There are no known registration points which can provide this capability.
org.wildfly.extension.health.server-probes; There are no known registration points which can provide this capability. 14:11:19,550 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-metrics-smallrye' are not available:
org.wildfly.extension.metrics.http-context; There are no known registration points which can provide this capability.

I have added metrics and health extensions to standalone xmls我已将指标和健康扩展添加到独立的 xmls

      <extension module="org.wildfly.extension.microprofile.health-smallrye"/>
  <extension module="org.wildfly.extension.microprofile.metrics-smallrye"/>
     <subsystem xmlns="urn:wildfly:microprofile-health-smallrye:2.0" security-enabled="false" empty-liveness-checks-status="${env.MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS:UP}" empty-readiness-checks-status="${env.MP_HEALTH_EMPTY_READINESS_CHECKS_STATUS:UP}"/>   
    <subsystem xmlns="urn:wildfly:microprofile-metrics-smallrye:2.0" security-enabled="false" exposed-subsystems="*" prefix="${wildfly.metrics.prefix:wildfly}"/>


 

but for main configuration file I am using a different xml.但对于主配置文件,我使用的是不同的 xml。 I saw in another questions using jboss.cli to add these extensions but jboss cli is not connecting because server can not running currently.我在另一个问题中看到使用 jboss.cli 添加这些扩展,但 jboss cli 没有连接,因为服务器当前无法运行。 Do you have any suggestions or advices ?您有什么建议或意见吗?

Thanks.谢谢。

You can still use CLI in "offline" mode to add the extension.您仍然可以在“离线”模式下使用 CLI 添加扩展。 First simply enter a CLI session with:首先只需输入一个 CLI 会话:

$JBOSS_HOME/bin/jboss-cli.sh

Then you can start the embedded server to make your changes.然后您可以启动嵌入式服务器进行更改。

embed-server

You should end up seeing something like this:您最终应该会看到如下内容:

[disconnected /] embed-server 
[standalone@embedded /]

From here you can enter CLI commands like:从这里您可以输入 CLI 命令,例如:

/extension=org.wildfly.extension.microprofile.health-smallrye:add
/extension=org.wildfly.extension.microprofile.metrics-smallrye:add
/subsystem=microprofile-health-smallrye:add(security-enabled=false, empty-liveness-checks-status="${env.MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS:UP}", empty-readiness-checks-status="${env.MP_HEALTH_EMPTY_READINESS_CHECKS_STATUS:UP}")

The output should look something like:输出应该类似于:

[standalone@embedded /] /extension=org.wildfly.extension.microprofile.health-smallrye:add
{"outcome" => "success"}

[standalone@embedded /] /extension=org.wildfly.extension.microprofile.metrics-smallrye:add
{"outcome" => "success"}

[standalone@embedded /] /subsystem=microprofile-health-smallrye:add(security-enabled=false, empty-liveness-checks-status="${env.MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS:UP}", empty-readiness-checks-status="${env.MP_HEALTH_EMPTY_READINESS_CHECKS_STATUS:UP}")
{"outcome" => "success"}

Then you can just exit CLI.然后你可以退出 CLI。

I found out microprofile.health-smallrye and microprofile.metrics-smallrye are not supported in WildFly 24. You should use subsystem=metrics,subsystem=health.我发现 WildFly 24 不支持 microprofile.health-smallrye 和 microprofile.metrics-smallrye。您应该使用 subsystem=metrics,subsystem=health。 If you look into this in detail check here .如果您详细查看此内容,请点击此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Wildfly 18 - WFLYCTL0362:资源“/subsystem=undertow/server=default-server/http-listener=http”所需的功能不可用 - Wildfly 18 - WFLYCTL0362: Capabilities required by resource '/subsystem=undertow/server=default-server/http-listener=http' are not available Quarkus:MicroProfile 指标和 Graphite - Quarkus: MicroProfile metrics and Graphite Wildfly 26 上的 Microprofile 指标存在问题 - Problem with Microprofile Metrics on Wildfly 26 访问.jsf时,所需的资源(jsp)不可用 - The required resource (jsp) is not available when accessing a .jsf 如何修复 WFLYCTL0412:未安装的必需服务 - How to fix WFLYCTL0412: Required services that are not installed “WFLYCTL0412:未安装所需的服务:”=&gt; [“jboss.jdbc-driver.mysql”] - "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.mysql"] WFLYCTL0085:无法解析配置 - WFLYCTL0085: Failed to parse configuration Wildfly Server在非Windows环境中失败,错误为WFLYCTL0017 &amp;&amp; WFLYCTL0013 - Wildfly Server is failing in non windows environment and with error WFLYCTL0017 && WFLYCTL0013 WFLYCTL0184:新缺少/不满意的依赖项wildfly 10 - WFLYCTL0184: New missing/unsatisfied dependencies wildfly 10 HTTP状态404-请求的资源(/BookStore/index.html)不可用 - HTTP Status 404 - The requested resource (/BookStore/index.html) is not available
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM