Problem visibility org.apache.httpcomponents.core

14 views
Skip to first unread message

Adrien B.

unread,
Dec 2, 2025, 10:24:05 AMDec 2
to WildFly
Hello,
I have a problems with resteasy and my wildfly.36-0.1.
I've developped a war,  some of its functionalities are basicaly just a rest client.
I've use the next dependencies :

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
<deployment>
<dependencies>
<module name="com.oracle.adf"/>
<module name="org.apache.commons"/>
<module name="com.siveco.loginmodules" />
<module name="org.jboss.as.controller-client" />
<module name="org.jboss.dmr" />
<module name="org.jboss.remoting" />
<module name="org.quartz"/>
<module name="jakarta.faces.api" slot="jakarta.faces-3.0.5"/>
<module name="jakarta.faces.impl" slot="jakarta.faces-3.0.5"/>
<module name="net.bull.javamelody" />
<module name="jakarta.ws.rs.api"/>
<module name="jakarta.servlet.api"/>
<module name="org.codehaus.jettison"/>
</dependencies>
</deployment>
</jboss-deployment-structure>

When I compile, I've added the right librairies.

But at runtime i've encounter the next error.
 java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient

The only way that i make this work is when i add the line 

        <module name="org.apache.httpcomponents.core"/>

inside the 
<WF_INSTALL>/modules/system/layers/base/org/jboss/resteasy/resteasy-client/main/

I don't understand why the classes in httpcomponents.core are not accessible for the resteasy-client.

Does anyone have a clue about this behaviour?

Thanks in advance for your answers.

Regards,
Adrien B.

James Perkins

unread,
Dec 2, 2025, 10:27:00 AMDec 2
to WildFly
Can you share more of the stack trace? Some of those module dependencies you shouldn't need to add. The jakarta.* ones should be added automatically. For the org.jboss ones, are you doing some kind of management client calls? If not, you likely don't need those either.
Reply all
Reply to author
Forward
0 new messages