I'm not too sure why the module cannot find the org.eclipse.microprofile.config.api module. Does the directory modules/system/layers/base/org/eclipse/microprofile/config/api/main/ exist?

jperkins@stalefish ~/servers/wildfly-23.0.2.Final $ ll modules/system/layers/base/org/eclipse/microprofile/config/api/main/
total 24
-rw-r--r-- 1 jperkins jperkins 18895 Apr 27 13:25 microprofile-config-api-2.0.jar
-rw-r--r-- 1 jperkins jperkins  1363 Apr 27 13:25 module.xml

On Sun, May 30, 2021 at 11:30 PM Alvaro Arenas <alvaro.arenas@gmail.com> wrote:
Hi James,

thx for your reply. I have tried once asking there but got no answer. But at that time I only knew that it doesn't work. I thought that if the willdfly doesn't provide the module I could add it myself in my deployment. This is what I am trying to do. But probably I am packaging the module wrongly.

By default WildFly does ship with the MicroProfile Config API and SmallRye implementation. I'm not sure you can override the implementation by including it in your deployment or not.

Regarding to your question. the module.xml looks like this:

❯ cat modules/system/layers/base/org/jboss/resteasy/resteasy-jaxrs/main/module.xml                                                                                                                                  ─╯
<?xml version="1.0" encoding="UTF-8"?>
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2010, Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags. See the copyright.txt file in the
  ~ distribution for a full listing of individual contributors.
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~ This software is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ Lesser General Public License for more details.
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
<module name="org.jboss.resteasy.resteasy-jaxrs" xmlns="urn:jboss:module:1.9">

        <resource-root path="resteasy-jaxrs-3.15.1.Final.jar"/>
        <resource-root path="resteasy-client-3.15.1.Final.jar"/>

        <module name="java.desktop"/>
        <module name="java.logging"/>
        <module name="java.management"/>
        <module name="java.naming"/>
        <!--WFLY-14219 Remove deprecated <module name="javax.api"/> -->
        <module name="javax.annotation.api"/>
        <module name="javax.activation.api"/>
        <module name="javax.validation.api"/>
        <module name="javax.enterprise.api"/>
        <module name="javax.xml.bind.api"/>
        <module name="javax.ws.rs.api"/>
        <module name="org.apache.commons.io"/>
        <module name="org.apache.commons.codec"/>
        <module name="org.apache.httpcomponents"/>
        <module name="org.apache.log4j"/>
        <module name="org.hibernate.validator" optional="true" services="import"/>
        <module name="org.slf4j"/>
        <module name="javax.servlet.api"/>
        <module name="org.jboss.resteasy.resteasy-validator-provider" optional="true" services="export" export="true"/>
        <module name="org.jboss.logging"/>
        <module name="org.reactivestreams"/>
        <module name="org.eclipse.microprofile.config.api" optional="true"/>
        <module name="java.xml"/>

Please let me know if you get any idea where the problem could be. I am quite lost at the moment and any hint would be appreciated. I don't quite understand how the class loader should work.
resteasy mailing list -- resteasy@lists.jboss.org
To unsubscribe send an email to resteasy-leave@lists.jboss.org

James R. Perkins
JBoss by Red Hat