Problem visibility org.apache.httpcomponents.core

45 views
Skip to first unread message

Adrien B.

unread,
Dec 2, 2025, 10:24:05 AM12/2/25
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 AM12/2/25
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.

Adrien B.

unread,
Jan 6, 2026, 10:47:59 AM (3 days ago) Jan 6
to WildFly
Hello, sorry for my late answer.
So i give you more of the stacktrace, keep in mind that i do manage client calls with resteasy.

16:35:17,307 SEVERE [oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter] (default task-1) ADF_FACES-60096:Exception du serveur pendant PPR, #1: jakarta.el.ELException: /secure/configurator.xhtml @48,203 disclosureListener="#{webdavController.processDisclosure}": java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient
at jakarta.faces.impl:jakarta.f...@3.0.5//com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:76)
at deployment.configurator.war//org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:2072)
at deployment.configurator.war//org.apache.myfaces.trinidad.component.UIXShowDetail.broadcast(UIXShowDetail.java:132)
at deployment.configurator.war//oracle.adf.view.rich.component.rich.layout.RichShowDetailItem.broadcast(RichShowDetailItem.java:83)
at jakarta.faces.impl:jakarta.f...@3.0.5//jakarta.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:852)
at jakarta.faces.impl:jakarta.f...@3.0.5//jakarta.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1329)
at deployment.configurator.war//oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:1683)
at deployment.configurator.war//oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeInvokeApplication(LifecycleImpl.java:808)
at deployment.configurator.war//oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:382)
at deployment.configurator.war//oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:239)
at jakarta.faces.impl:jakarta.f...@3.0.5//jakarta.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:681)
at jakarta.faces.impl:jakarta.f...@3.0.5//jakarta.faces.webapp.FacesServlet.service(FacesServlet.java:437)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
at deployment.configurator.war//oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain$1.call(TrinidadFilterImpl.java:594)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain$1.call(TrinidadFilterImpl.java:590)
at deployment.configurator.war//org.apache.myfaces.trinidad.context.ExternalContextPropagator.processInScope(ExternalContextPropagator.java:216)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:599)
at deployment.configurator.war//oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:91)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain$1.call(TrinidadFilterImpl.java:594)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain$1.call(TrinidadFilterImpl.java:590)
at deployment.configurator.war//org.apache.myfaces.trinidad.context.ExternalContextPropagator.processInScope(ExternalContextPropagator.java:216)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:599)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$1.call(TrinidadFilterImpl.java:374)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$1.call(TrinidadFilterImpl.java:370)
at deployment.configurator.war//org.apache.myfaces.trinidad.context.ExternalContextPropagator.processInScope(ExternalContextPropagator.java:216)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:385)
at deployment.configurator.war//org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:242)
at deployment.configurator.war//org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:101)
at io.undert...@2.3.18.Final//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at org.wildfly.security.ely...@4.1.2.Final//org.wildfly.elytron.web.undertow.server.ElytronRunAsHandler.lambda$handleRequest$1(ElytronRunAsHandler.java:68)
at org.wildfly.secu...@2.6.4.Final//org.wildfly.security.auth.server.FlexibleIdentityAssociation.runAsFunctionEx(FlexibleIdentityAssociation.java:103)
at org.wildfly.secu...@2.6.4.Final//org.wildfly.security.auth.server.Scoped.runAsFunctionEx(Scoped.java:161)
at org.wildfly.secu...@2.6.4.Final//org.wildfly.security.auth.server.Scoped.runAs(Scoped.java:73)
at org.wildfly.security.ely...@4.1.2.Final//org.wildfly.elytron.web.undertow.server.ElytronRunAsHandler.handleRequest(ElytronRunAsHandler.java:67)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.under...@2.3.18.Final//io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
at io.under...@2.3.18.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.under...@2.3.18.Final//io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
at io.under...@2.3.18.Final//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:60)
at io.under...@2.3.18.Final//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at org.wildfly.security.elytron...@4.1.2.Final//org.wildfly.elytron.web.undertow.server.servlet.CleanUpHandler.handleRequest(CleanUpHandler.java:38)
at io.under...@2.3.18.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.ext...@36.0.1.Final//org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:44)
at io.under...@2.3.18.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.ext...@36.0.1.Final//org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:51)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
at io.under...@2.3.18.Final//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:276)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:132)
at io.undert...@2.3.18.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undert...@2.3.18.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.ext...@36.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421)
at org.wildfly.ext...@36.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421)
at org.wildfly.ext...@36.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421)
at org.wildfly.ext...@36.0.1.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1421)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:256)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.ServletInitialHandler$1$1.run(ServletInitialHandler.java:107)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
at io.undert...@2.3.18.Final//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
at io.under...@2.3.18.Final//io.undertow.server.Connectors.executeRootHandler(Connectors.java:395)
at io.under...@2.3.18.Final//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:861)
at org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at org.jbo...@3.8.16.Final//org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient
at org.jboss.resteas...@6.2.12.Final//org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl.build(ResteasyClientBuilderImpl.java:403)
at org.jboss.resteas...@6.2.12.Final//org.jboss.resteasy.client.jaxrs.internal.ResteasyClientBuilderImpl.build(ResteasyClientBuilderImpl.java:48)
at deployment.configurator.war//com.siveco.coswin.configurator.services.WebdavUserServices.findUsers(WebdavUserServices.java:50)
at deployment.configurator.war//com.siveco.coswin.configurator.controllers.WebdavController.processDisclosure(WebdavController.java:106)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.glassfi...@5.0.0//org.glassfish.expressly.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:186)
at org.glassfi...@5.0.0//org.glassfish.expressly.parser.AstValue.invoke(AstValue.java:253)
at org.glassfi...@5.0.0//org.glassfish.expressly.MethodExpressionImpl.invoke(MethodExpressionImpl.java:248)
at org.jboss...@5.1.5.Final//org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
at org.jboss...@5.1.5.Final//org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
at org.jboss...@5.1.5.Final//org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
at org.jboss...@5.1.5.Final//org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
at jakarta.faces.impl:jakarta.f...@3.0.5//com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:70)
... 78 more
Caused by: java.lang.ClassNotFoundException: org.apache.http.client.HttpClient from [Module "org.jboss.resteasy.resteasy-client" version 6.2.12.Final from local module loader @57cf54e1 (finder: local module finder @5b03b9fe (roots: /home/abaikeche/envs/coswin_813a_virgin/wildfly-36.0.1.Final/modules,/home/abaikeche/envs/coswin_813a_virgin/wildfly-36.0.1.Final/modules/system/layers/base,/home/abaikeche/envs/coswin_813a_virgin/wildfly-36.0.1.Final/modules/system/add-ons/keycloak))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:201)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:408)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:396)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:115)
... 92 more

Thanks in advance,
Regards, and sorry for the late answer.

James Perkins

unread,
Jan 6, 2026, 11:21:42 AM (3 days ago) Jan 6
to WildFly
No problem, 'tis the season to be out more often :)

Do you by chance have a jboss-deployment-structure.xml in your deployment? The org.jboss.resteasy.resteasy-client module does have a dependency on org.apache.httpcomponents which exports the org.apache.httpcomponents.core dependency. This means it should have access.

Can you open the $JBOSS_HOME/modules/system/layers/base/org/jboss/resteasy/resteasy-client/main/module.xml file and add a dependency to the org.apache.httpcomponents.core to see if that solves your issue? It shouldn't need the explicit dependency, but it's worth a test.

If you've got a way to reproduce it too that would be awesome. I can completely understand if there is not though.

Adrien B.

unread,
Jan 7, 2026, 4:41:40 AM (2 days ago) Jan 7
to WildFly
Hello, I do have a jboss-deployment-structure.xml in my deployment,
I do have tested to add the dependency org.apache.httpcomponents.core in the $JBOSS_HOME/modules/system/layers/base/org/jboss/resteasy/resteasy-client/main/module.xml and it does solve this problem.

to Reproduce this behaviour, it i'm sorry but it's too costly

My question left is can i find a way to manipulate the jboss-deployment-structure.xml in order to avoid this error ?

Thanks,
Adrien B.

James Perkins

unread,
Jan 7, 2026, 6:10:02 PM (2 days ago) Jan 7
to WildFly
I had a feeling a reproducer wouldn't be easy honestly.

I don't think there is anything you can do in the jboss-deployment-structure.xml to fix this. I honestly don't even understand why it wouldn't work. If the module has a dependency on org.apache.httpcomonents, that should be enough. The error seems to indicate the org.jboss.resteasy.resteasy-client can't find the org.apache.http.client.HttpClient which should be in the org.apache.httpcomponents.core module which is exported via the org.apache.httpcomponents module. Can you verify that you have a modules in $JBOSS_HOME/modules/system/layers/base/org/apache/httpcomponents/main and $JBOSS_HOME/modules/system/layers/base/org/apache/httpcomponents/core/main? I don't see why they wouldn't be there, but it's the only thing I can think of.

Adrien B.

unread,
Jan 8, 2026, 3:11:29 AM (yesterday) Jan 8
to WildFly
Hi, 
I do have a module here :
$JBOSS_HOME/modules/system/layers/base/org/apache/httpcomponents/main
and there :
$JBOSS_HOME/modules/system/layers/base/org/apache/httpcomponents/core/main

So I guess I need to modify my wildfly (i.e. modify module resteasy-client) in order to make my app work .
Thanks for your answers,

Adrien B.

James Perkins

unread,
Jan 8, 2026, 11:44:14 AM (19 hours ago) Jan 8
to WildFly
I don't think you should have to modify the resteasy-client module. It should work as-is unless something else changed the module dependencies. TBH this really doesn't make a lot of sense to me. Could there be some kind of file permissions issue by chance?
Reply all
Reply to author
Forward
0 new messages