Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-metrics-smallrye' are not available: #135

Open
vkabun opened this issue Jan 29, 2021 · 11 comments

Comments

@vkabun
Copy link

vkabun commented Jan 29, 2021

Not able to start the server in Docker. Today started with the new image download and ended up in the following error

07:54:08,944 INFO  [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final
07:54:09,908 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.12.Final
07:54:09,919 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
07:54:10,098 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 22.0.0.Final (WildFly Core 14.0.0.Final) starting
07:54:11,706 INFO  [org.wildfly.security] (ServerService Thread Pool -- 28) ELY00001: WildFly Elytron version 1.14.1.Final
07:54:12,950 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found xxxDaemon.war in deployment directory. To trigger deployment create a file called xxxDaemon.war.dodeploy
07:54:13,092 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-health-smallrye' are not available:
    org.wildfly.extension.health.server-probes; There are no known registration points which can provide this capability.
    org.wildfly.extension.health.http-context; There are no known registration points which can provide this capability.
07:54:13,098 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=undertow/server=default-server/https-listener=https' are not available:
    org.wildfly.security.ssl-context.LocalhostSslContext; Possible registration points for this capability:
                /subsystem=elytron/server-ssl-context=*
                /subsystem=elytron/client-ssl-context=*
                /subsystem=elytron/server-ssl-sni-context=*
07:54:13,100 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/core-service=management/management-interface=http-interface' are not available:
    org.wildfly.security.http-authentication-factory.application-security-http; Possible registration points for this capability:
                /subsystem=elytron/http-authentication-factory=*
07:54:13,107 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.
07:54:13,129 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
07:54:13,202 INFO  [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050: WildFly Full 22.0.0.Final (WildFly Core 14.0.0.Final) stopped in 47ms
@goldmann
Copy link
Member

I cannot reproduce it:

❯ podman run -it --rm jboss/wildfly:latest
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/jboss/wildfly

  JAVA: /usr/lib/jvm/java/bin/java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true  --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED

=========================================================================

07:58:19,478 INFO  [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final
07:58:19,893 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.12.Final
07:58:19,900 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
07:58:20,016 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 22.0.0.Final (WildFly Core 14.0.0.Final) starting
07:58:20,688 INFO  [org.wildfly.security] (ServerService Thread Pool -- 5) ELY00001: WildFly Elytron version 1.14.1.Final
07:58:21,201 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
07:58:21,236 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 4) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
07:58:21,295 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
07:58:21,310 INFO  [org.xnio] (MSC service thread 1-3) XNIO version 3.8.4.Final
07:58:21,317 INFO  [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation Version 3.8.4.Final
07:58:21,358 INFO  [org.wildfly.extension.health] (ServerService Thread Pool -- 52) WFLYHEALTH0001: Activating Base Health Subsystem
07:58:21,371 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 53) WFLYCLINF0001: Activating Infinispan subsystem.
07:58:21,384 INFO  [org.wildfly.extension.microprofile.jwt.smallrye._private] (ServerService Thread Pool -- 64) WFLYJWT0001: Activating WildFly MicroProfile JWT Subsystem
07:58:21,388 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 66) WFLYNAM0001: Activating Naming Subsystem
07:58:21,391 INFO  [org.wildfly.extension.metrics] (ServerService Thread Pool -- 62) WFLYMETRICS0001: Activating Base Metrics Subsystem
07:58:21,397 INFO  [org.wildfly.extension.microprofile.opentracing] (ServerService Thread Pool -- 65) WFLYTRACEXT0001: Activating MicroProfile OpenTracing Subsystem
07:58:21,403 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 72) WFLYSEC0002: Activating Security Subsystem
07:58:21,393 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 44) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
07:58:21,406 INFO  [org.wildfly.extension.microprofile.config.smallrye._private] (ServerService Thread Pool -- 63) WFLYCONF0001: Activating WildFly MicroProfile Config Subsystem
07:58:21,386 INFO  [org.jboss.as.connector] (MSC service thread 1-6) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar @VERSION@)
07:58:21,381 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 60) WFLYJSF0007: Activated the following JSF Implementations: [main]
07:58:21,415 INFO  [org.jboss.remoting] (MSC service thread 1-8) JBoss Remoting version 5.0.20.Final
07:58:21,408 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0018: Started Driver service with driver-name = h2
07:58:21,406 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 54) WFLYIO001: Worker 'default' has auto-configured to 16 IO threads with 128 max task threads based on your 8 available processors
07:58:21,406 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 55) WFLYRS0016: RESTEasy version 3.14.0.Final
07:58:21,405 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 74) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
07:58:21,433 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0003: Undertow 2.2.3.Final starting
07:58:21,435 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 76) WFLYWS0002: Activating WebServices Extension
07:58:21,425 INFO  [org.jboss.as.security] (MSC service thread 1-3) WFLYSEC0001: Current PicketBox version=5.0.3.Final-redhat-00007
07:58:21,464 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-4) WFLYELY00023: KeyStore file '/opt/jboss/wildfly/standalone/configuration/application.keystore' does not exist. Used blank.
07:58:21,482 INFO  [org.jboss.as.naming] (MSC service thread 1-7) WFLYNAM0003: Starting Naming Service
07:58:21,488 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-4) WFLYELY01084: KeyStore /opt/jboss/wildfly/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self-signed certificate for host localhost
07:58:21,489 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-5) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/opt/jboss/wildfly/modules/system/layers/base/org/wildfly/extension/elytron/main/wildfly-elytron-integration-14.0.0.Final.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS()
WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
07:58:21,583 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 75) WFLYUT0014: Creating file handler for path '/opt/jboss/wildfly/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
07:58:21,621 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: Started server default-server.
07:58:21,627 INFO  [org.jboss.as.ejb3] (MSC service thread 1-1) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 128 (per class), which is derived from thread worker pool sizing.
07:58:21,628 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting
07:58:21,627 INFO  [org.jboss.as.ejb3] (MSC service thread 1-6) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 32 (per class), which is derived from the number of CPUs on this host.
07:58:21,741 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTP listener default listening on 0.0.0.0:8080
07:58:21,845 INFO  [org.jboss.as.ejb3] (MSC service thread 1-1) WFLYEJB0493: EJB subsystem suspension complete
07:58:21,898 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
07:58:22,042 INFO  [org.jboss.as.patching] (MSC service thread 1-5) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none
07:58:22,051 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-1) WFLYDM0111: Keystore /opt/jboss/wildfly/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
07:58:22,058 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) WFLYDS0013: Started FileSystemDeploymentService for directory /opt/jboss/wildfly/standalone/deployments
07:58:22,079 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0006: Undertow HTTPS listener https listening on 0.0.0.0:8443
07:58:22,143 INFO  [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBossWS 5.4.2.Final (Apache CXF 3.3.7) 
07:58:22,241 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
07:58:22,243 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 22.0.0.Final (WildFly Core 14.0.0.Final) started in 3074ms - Started 318 of 557 services (345 services are lazy, passive or on-demand)
07:58:22,244 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
07:58:22,245 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990

@vkabun
Copy link
Author

vkabun commented Jan 29, 2021

able to deploy the any war?

@goldmann
Copy link
Member

I don't have any war handy here. Your original report did not mention any deployment, so I assumed that the issue is in running plan container.

@vkabun
Copy link
Author

vkabun commented Jan 29, 2021

Whether war deployed or not.. always ended up with the following errors

08:09:47,015 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.
08:09:47,017 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-health-smallrye' are not available:
    org.wildfly.extension.health.server-probes; There are no known registration points which can provide this capability.
    org.wildfly.extension.health.http-context; There are no known registration points which can provide this capability.
08:09:47,030 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

@vkabun
Copy link
Author

vkabun commented Jan 29, 2021

Below is the complete log... above comment showed only errors

Running WildFly
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/jboss/wildfly

  JAVA: /usr/lib/jvm/java/bin/java

  JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true  --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED

=========================================================================

08:09:42,938 INFO  [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final
08:09:43,869 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.12.Final
08:09:43,888 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
08:09:44,049 INFO  [org.jboss.as] (MSC service thread 1-3) WFLYSRV0049: WildFly Full 22.0.0.Final (WildFly Core 14.0.0.Final) starting
08:09:45,677 INFO  [org.wildfly.security] (ServerService Thread Pool -- 28) ELY00001: WildFly Elytron version 1.14.1.Final
08:09:46,703 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
08:09:46,797 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 19) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=ssl' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
08:09:46,874 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found bpsDaemon.war in deployment directory. To trigger deployment create a file called bpsDaemon.war.dodeploy
08:09:47,015 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.
08:09:47,017 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-health-smallrye' are not available:
    org.wildfly.extension.health.server-probes; There are no known registration points which can provide this capability.
    org.wildfly.extension.health.http-context; There are no known registration points which can provide this capability.
08:09:47,030 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
08:09:47,099 INFO  [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050: WildFly Full 22.0.0.Final (WildFly Core 14.0.0.Final) stopped in 40ms

@goldmann
Copy link
Member

What command do you use to start the container?

@vkabun
Copy link
Author

vkabun commented Jan 29, 2021

docker run --rm -it --name=abpsDaemon --env-file=env_list --network=host hs-wildfly:1.0
#docker run -p XXXX:8080 -p 9990:9990 --rm -it --name=abpsDaemon --env-file=env_list --network=host hs-wildfly:1.0

Tried with above 2 cmds

@goldmann
Copy link
Member

What is the hs-wildfly:1.0 image? Are you extending the jboss/wildfly image? If yes, the issue may be in the modifications you make.

@spahrson
Copy link

I have the same issue when downloading wildfly 22.0.1 as zip, extract it and run bin/standalone.sh. Any hints?

@odemura
Copy link
Contributor

odemura commented Mar 22, 2021

I had the similar problem when failed to properly update local stadalone-${variant}.xml according to the new version of original file.

@jmesnil
Copy link
Contributor

jmesnil commented Aug 3, 2022

Have you tried using the standalone-micro profile.xml configuration to start the server?

If you add:

CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0", "-c", "standalone-microprofile.xml"]

to your Dockerfile, does that solve the error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants