We are migrating from
JBOSS-4.3.2.GA to Wildfly 29 Final and are encountering a myriad of issues, most of them self inflicted quite possibly, however any help in the transition would be helpful. Below are the details.
- Using Java 17
- Using Wildfly 29
- Using Jakarta and not Javax
- Using CXF version 4.0.3 (Using the default provided jars, and upgraded cxf*-http*4.0.3.jar)
- Using Spring version 6.0.12
- Using jboss-structure.xml
- All other existing default modules and jars from wildfly version 29
We have a war which contains webservices (cannot disclose those) however when we deploy to the Wildfly container we see the following exception.
C:\wildfly-29.0.1.Final\modules,C:\wildfly-29.0.1.Final\modules\system\layers\base))
2023-10-12 14:42:12,231 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."analytics-ws.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."analytics-ws.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "analytics-ws.war"
at org.jboss...@21.1.1.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
at org.jb...@1.5.1.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1617)
at org.jb...@1.5.1.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1580)
at org.jb...@1.5.1.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1438)
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:833)
Caused by: java.util.ServiceConfigurationError: jakarta.servlet.ServletContainerInitializer: com.sun.xml.ws.transport.http.servlet.WSServletContainerInitializer not a subtype
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
at org.wildfly.ext...@29.0.1.Final//org.wildfly.extension.undertow.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:117)
at org.jboss...@21.1.1.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
... 8 more
2023-10-12 14:42:12,245 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "analytics-ws.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"analytics-ws.war\".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of deployment \"analytics-ws.war\"
Caused by: java.util.ServiceConfigurationError: jakarta.servlet.ServletContainerInitializer: com.sun.xml.ws.transport.http.servlet.WSServletContainerInitializer not a subtype"},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.unit.\"analytics-ws.war\".WeldStartService",
"jboss.deployment.unit.\"analytics-ws.war\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"analytics-ws.war\".batch.artifact.factory is missing [jboss.deployment.unit.\"analytics-ws.war\".beanmanager]",
"jboss.deployment.unit.\"analytics-ws.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"analytics-ws.war\".WeldStartService, jboss.deployment.unit.\"analytics-ws.war\".beanmanager]"
]
}
Contents on the spring module.xml as follows.
<module name="org.springframework.spring" xmlns="urn:jboss:module:1.9">
<resources>
<resource-root path="spring-jdbc-6.0.12.jar" />
<resource-root path="spring-aop-6.0.12.jar" />
<resource-root path="spring-jms-6.0.12.jar" />
<resource-root path="spring-beans-6.0.12.jar" />
<resource-root path="spring-ldap-core-3.1.1.jar" />
<resource-root path="spring-context-6.0.12.jar" />
<resource-root path="spring-messaging-6.0.12.jar" />
<resource-root path="spring-core-6.0.12.jar" />
<resource-root path="spring-security-core-6.1.4.jar" />
<resource-root path="spring-security-crypto-6.1.4.jar" />
<resource-root path="spring-expression-6.0.12.jar" />
<resource-root path="spring-tx-6.0.12.jar" />
<resource-root path="spring-jcl-6.0.12.jar" />
<resource-root path="spring-web-6.0.12.jar" />
</resources>
<dependencies>
<module name="jakarta.servlet.api" export="true" />
<module name="javaee.api" export="true"/>
<module name="org.jboss.vfs" export="true"/>
<module name="jakarta.el.api" export="true"/>
<module name="com.sun.xml.bind" export="true"/>
<module name="sun.jdk" export="true"/>
</dependencies>
</module>
Thank you all very much for all the help in advance!!!