[jboss-jira] [JBoss JIRA] (WFLY-12461) Can't use smallrye-health without weld extension

Jeff Mesnil (Jira) issues at jboss.org
Mon Nov 18 04:11:00 EST 2019


    [ https://issues.jboss.org/browse/WFLY-12461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814081#comment-13814081 ] 

Jeff Mesnil commented on WFLY-12461:
------------------------------------

Since the commit you mentioned, smallrye-health was updated to require CDI to inject the health checks.

WildFly followed that changes and required the Weld extension so that WildFly can consume health checks probes that uses CDI.
>From WildFly perspective, CDI is now required to use MicroProfile Health and the Weld integration is not optional.

I'm not sure what to suggest to fix your issue but there are 2 options:
* add a RFE to smallrye-health to make CDI optional again. I'm not sure it'd be accepted though as CDI is a 1st class citizen in MicroProfile and its use in smallrye-health is valid
* Fix the integration of Weld in org.apache.cxf.jaxrs.

> Can't use smallrye-health without weld extension
> ------------------------------------------------
>
>                 Key: WFLY-12461
>                 URL: https://issues.jboss.org/browse/WFLY-12461
>             Project: WildFly
>          Issue Type: Bug
>          Components: MP Health
>    Affects Versions: 17.0.1.Final
>            Reporter: Florian Sailer
>            Assignee: Jeff Mesnil
>            Priority: Major
>
> Since this commit in the smallrye implementation it was possible to use smallrye without CDI.
> https://github.com/smallrye/smallrye-health/commit/a6a7812877d74d2c3f5b29f77fe12bbcc747f47a#diff-a040cf66063b382bb5c1e2e6aa18f8c5
> I'm trying to migrate from Wildfly 15.0.1-Final to 17.0.1-Final, where the smallrye-health extension unfortunately needs weld to startup.  It's not possbible for me to activate weld on my sever, because there are some problems using the org.apache.cxf.jaxrs framework with weld.
> I am getting the following exception while starting:
> 14:16:04,960 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=microprofile-health-smallrye' are not available:
>     org.wildfly.weld; There are no known registration points which can provide this capability.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list