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.
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
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ 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">
<resources>
<resource-root path="resteasy-jaxrs-3.15.1.Final.jar"/>
<resource-root path="resteasy-client-3.15.1.Final.jar"/>
</resources>
<dependencies>
<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"/>
</dependencies>
</module>
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.