WFLYSRV0153: Error loading org.apache.commons.lang module

53 views
Skip to first unread message

Laura Schanno

unread,
Aug 5, 2025, 11:35:05 AM8/5/25
to WildFly

Greetings all,


I am encountering an issue with deploying an application EAR to a standalone Wildfly 26 (migrating from Wildfly 17) using JDK 11. I keep seeing ModuleLoadErrors for org.apache.commons.lang when trying to start a number of services, for example:


2025-08-05 01:24:05,453 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6)  MSC000001: Failed to start service jboitss.deployment.subun."datawave-ws-deploy-application-7.27.0-SNAPSHOT-dev.ear"."gov.nsa.datawave.webservices-datawave-ws-map-reduce-7.27.0-SNAPSHOT.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."datawave-ws-deploy-application-7.27.0-SNAPSHOT-dev.ear"."gov.nsa.datawave.webservices-datawave-ws-map-reduce-7.27.0-SNAPSHOT.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "gov.nsa.datawave.webservices-datawave-ws-map-reduce-7.27.0-SNAPSHOT.jar" of deployment "datawave-ws-deploy-application-7.27.0-SNAPSHOT-dev.ear"

 at org.jboss...@18.1.2.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)

 at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)

 at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)

 at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)

 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:1363)

 at java.base/java.lang.Thread.run(Thread.java:829)

Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class datawave.webservice.mr.state.MapReduceStatePersisterBean with ClassLoader ModuleClassLoader for Module "deployment.datawave-ws-deploy-application-7.27.0-SNAPSHOT-dev.ear.gov.nsa.datawave.webservices-datawave-ws-map-reduce-7.27.0-SNAPSHOT.jar" from Service Module Loader

 at org.jboss...@18.1.2.Final//org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:78)

 at org.jboss...@18.1.2.Final//org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:57)

 at org.jbos...@26.1.3.Final//org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)

 at org.jbos...@26.1.3.Final//org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)

 at org.jboss...@18.1.2.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)

 ... 8 more

Caused by: org.jboss.modules.ModuleLoadError: org.apache.commons.lang

 at org.jboss.modules.Module.addPaths(Module.java:1271)

 at org.jboss.modules.Module.link(Module.java:1627)

 at org.jboss.modules.Module.getPaths(Module.java:1588)

 at org.jboss.modules.Module.getPathsUnchecked(Module.java:1611)

 at org.jboss.modules.Module.loadModuleClass(Module.java:760)

 at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:192)

 ...


The affected service jars have a dependency on the org.apache.commons.lang module, which appears to not exist anymore in Wildfly 26. Was this removed as an included wildfly module? If so, is there any documentation explicitly listing all of the modules that Wildfly provides out of the box?


Thanks,


Laura Schanno


Emmanuel Hugonnet

unread,
Aug 5, 2025, 1:49:12 PM8/5/25
to wil...@googlegroups.com
In the module.xml if there is a
    <properties>
        <property name="jboss.api" value="private"/>
    </properties>

that means that this module is not to be depended on.

commons-lang was removed in 25.

Emmanuel


Le 05/08/2025 à 17:35, Laura Schanno a écrit :
>
> Greetings all,
>
>
> I am encountering an issue with deploying an application EAR to a standalone Wildfly 26 (migrating from Wildfly 17) using JDK 11. I keep
> seeing ModuleLoadErrors for org.apache.commons.lang when trying to start a number of services, for example:
>
>
> 2025-08-05 01:24:05,453 ERROR[org.jboss.msc.service.fail] (MSC service thread 1-6)  MSC000001: Failed to start service
> jboitss.deployment.subun."datawave-ws-deploy-application-7.27.0-SNAPSHOT-dev.ear"."gov.nsa.datawave.webservices-datawave-ws-map-reduce-7.27.0-SNAPSHOT.jar".POST_MODULE:
> org.jboss.msc.service.StartExceptionin service
> jboss.deployment.subunit."datawave-ws-deploy-application-7.27.0-SNAPSHOT-dev.ear"."gov.nsa.datawave.webservices-datawave-ws-map-reduce-7.27.0-SNAPSHOT.jar".POST_MODULE:
> WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment
> "gov.nsa.datawave.webservices-datawave-ws-map-reduce-7.27.0-SNAPSHOT.jar"of deployment
> "datawave-ws-deploy-application-7.27.0-SNAPSHOT-dev.ear"
>
>  at org.jboss...@18.1.2.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
>
>  at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
>
>  at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
>
>  at org.jb...@1.4.13.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
>
>  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:1363)
>
>  at java.base/java.lang.Thread.run(Thread.java:829)
>
> Caused by: java.lang.RuntimeException: WFLYSRV0177: Errorgetting reflective information for class
> datawave.webservice.mr.state.MapReduceStatePersisterBeanwith ClassLoader ModuleClassLoader for Module
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/wildfly/f6d1b918-7d80-4cbe-aeab-34469596b8f2n%40googlegroups.com
> <https://groups.google.com/d/msgid/wildfly/f6d1b918-7d80-4cbe-aeab-34469596b8f2n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Laura Schanno

unread,
Aug 6, 2025, 11:41:46 AM8/6/25
to WildFly
Removing the commons-lang module dependency fixed the issue, thanks!

John Saccoccio

unread,
Aug 6, 2025, 12:27:42 PM8/6/25
to WildFly
<property name="jboss.api" value="private"/>  definitely flags the module and/or library version as not to be depended on between Wildfly versions, but it can still be used - buyer must beware at upgrade time, as you've discovered.
(org.apache.commons.lang3 is the current module)

Reply all
Reply to author
Forward
0 new messages