Hi all, we are attempting to migrate our Jakarta 8 application from Websphere to Wildfly 21. The app is using Ant which builds a few WARs and JARs and packages them into an EAR file. We have been unsuccessful in trying to debug (potentially several) issues that seem to have a common theme of class loading/dependencies.
The project does not use Maven, so all dependency JARs are kept in a WEB-INF folder of the "snap" project and referenced across projects.
We have reviewed the documentation on class loading in Wildfly but it is not clear what/if changes need to be made. Any insight would be greatly appreciated.
14:41:44,574 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.subunit."snap_ear.ear"."snap_ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."snap_ear.ear"."snap_ejb.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "snap_ejb.jar" of deployment "snap_ear.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.att.snap.dataAccess.ss7NetworkElement.ejb.NetworkElementTypeDaoImpl with ClassLoader ModuleClassLoader for Module "deployment.snap_ear.ear.snap_ejb.jar" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:78)
at org.jboss.as.server.deployment.reflect.ClassReflectionIndexUtil.findMethod(ClassReflectionIndexUtil.java:57)
at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.handleStatelessSessionBean(DeploymentDescriptorMethodProcessor.java:99)
at org.jboss.as.ejb3.deployment.processors.dd.DeploymentDescriptorMethodProcessor.deploy(DeploymentDescriptorMethodProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
... 8 more
Caused by: java.lang.NoClassDefFoundError: LLog;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:72)
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
... 12 more
Caused by: java.lang.ClassNotFoundException: Log from [Module "deployment.snap_ear.ear.snap_ejb.jar" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
... 17 more
14:41:44,580 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "snap_ear.ear")]) - failure description: {
"WFLYCTL0080: Failed services" => {
"jboss.deployment.subunit.\"snap_ear.ear\".\"snapIr21Services.war\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"snapIr21Services.war\" of deployment \"snap_ear.ear\"
Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/ws/transport/http/MessageDispatcherServlet (Module \"deployment.snap_ear.ear.snapIr21Services.war\" from Service Module Loader): org/springframework/web/servlet/FrameworkServlet",
"jboss.deployment.subunit.\"snap_ear.ear\".\"snap_ejb.jar\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"snap_ejb.jar\" of deployment \"snap_ear.ear\"
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.att.snap.dataAccess.ss7NetworkElement.ejb.NetworkElementTypeDaoImpl with ClassLoader ModuleClassLoader for Module \"deployment.snap_ear.ear.snap_ejb.jar\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: LLog;
Caused by: java.lang.ClassNotFoundException: Log from [Module \"deployment.snap_ear.ear.snap_ejb.jar\" from Service Module Loader]"
},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.subunit.\"snap_ear.ear\".\"snap.war\".beanmanager",
"jboss.deployment.unit.\"snap_ear.ear\".WeldStartService",
"jboss.deployment.unit.\"snap_ear.ear\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.subunit.\"snap_ear.ear\".\"snap.war\".batch.artifact.factory is missing [jboss.deployment.subunit.\"snap_ear.ear\".\"snap.war\".beanmanager]",
"jboss.deployment.unit.\"snap_ear.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"snap_ear.ear\".beanmanager, jboss.deployment.unit.\"snap_ear.ear\".WeldStartService]"
]
}
14:41:44,763 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "oraclejdbc8" (runtime-name : "oraclejdbc8")
14:41:44,764 INFO [org.jboss.as.server] (ServerService Thread Pool -- 45) WFLYSRV0010: Deployed "snap_ear.ear" (runtime-name : "snap_ear.ear")
14:41:44,766 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."snap_ear.ear"."snap.war".beanmanager (missing) dependents: [service jboss.deployment.subunit."snap_ear.ear"."snap.war".batch.artifact.factory]
service jboss.deployment.unit."snap_ear.ear".WeldStartService (missing) dependents: [service jboss.deployment.unit."snap_ear.ear".weld.weldClassIntrospector]
service jboss.deployment.unit."snap_ear.ear".beanmanager (missing) dependents: [service jboss.deployment.unit."snap_ear.ear".weld.weldClassIntrospector]
WFLYCTL0186: Services which failed to start: service jboss.deployment.subunit."snap_ear.ear"."snapIr21Services.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "snapIr21Services.war" of deployment "snap_ear.ear"
service jboss.deployment.subunit."snap_ear.ear"."snap_ejb.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "snap_ejb.jar" of deployment "snap_ear.ear"
WFLYCTL0448: 3 additional services are down due to their dependencies being missing or failed
14:41:44,869 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
14:41:44,873 ERROR [
org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 21.0.2.Final (WildFly Core 13.0.3.Final) started (with errors) in 17866ms - Started 479 of 712 services (8 services failed or missing dependencies, 383 services are lazy, passive or on-demand)