The project I am currently working on runs on wildfly v24, and has the following dependency:
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>3.15.1.Final</version>
<scope>provided</scope>
</dependency>
As resteasy-jaxrs has been deprecated from v25, I removed it from the project and did the code changes wherever compilation error was found.
While deploying I am getting stuck on this error and couldn't get past it since few days. Below is my deployment logs:
JBoss Bootstrap Environment
JBOSS_HOME: /opt/wildfly-25.0.1.Final
JAVA: /home/bishwa/.sdkman/candidates/java/11.0.12-open/bin/java
.
.
Wildfly start logs
.
.
.
Connected to server
[2023-03-18 02:05:36,139] Artifact tms-service:war: Artifact is being deployed, please wait...
14:05:36,262 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "tms-service.war" (runtime-name: "tms-service.war")
14:05:39,073 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0059: Class Path entry cmulex.jar in /content/tms-service.war/WEB-INF/lib/cmu_us_kal-1.0.jar does not point to a valid jar for a Class-Path reference.
14:05:39,076 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0059: Class Path entry en_us.jar in /content/tms-service.war/WEB-INF/lib/cmulex-1.0.jar does not point to a valid jar for a Class-Path reference.
14:05:39,079 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0059: Class Path entry cmutimelex.jar in /content/tms-service.war/WEB-INF/lib/cmu_time_awb-1.0.jar does not point to a valid jar for a Class-Path reference.
14:05:39,080 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0059: Class Path entry en_us.jar in /content/tms-service.war/WEB-INF/lib/cmutimelex-1.0.jar does not point to a valid jar for a Class-Path reference.
14:05:39,091 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0059: Class Path entry en_us.jar in /content/tms-service.war/WEB-INF/lib/cmudict04-1.0.jar does not point to a valid jar for a Class-Path reference.
14:05:39,092 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0059: Class Path entry freetts.jar in /content/tms-service.war/WEB-INF/lib/en_us-1.0.jar does not point to a valid jar for a Class-Path reference.
14:05:39,395 INFO [org.jboss.as.jpa] (MSC service thread 1-4) WFLYJPA0002: Read persistence.xml for nepse-tms
14:05:39,641 INFO [org.jipijapa] (MSC service thread 1-8) JIPIORMV53020253: Second level cache enabled for tms-service.war#nepse-tms
14:05:40,011 INFO [org.infinispan.CONTAINER] (ServerService Thread Pool -- 15) ISPN000128: Infinispan version: Infinispan 'Taedonggang' 12.1.7.Final
14:05:40,061 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 15) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'tms-service.war#nepse-tms'
14:05:40,082 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 15) HHH000204: Processing PersistenceUnitInfo [
name: nepse-tms
...]
14:05:40,101 INFO [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0003: Processing weld deployment tms-service.war
14:05:40,158 INFO [org.hibernate.Version] (ServerService Thread Pool -- 15) HHH000412: Hibernate Core {5.3.23.Final}
14:05:40,159 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 15) HHH000206: hibernate.properties not found
14:05:40,207 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-7) HV000001: Hibernate Validator 6.0.22.Final
14:05:40,347 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 15) HCANN000001: Hibernate Commons Annotations {5.0.5.Final}
14:05:40,355 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-7) WFLYEJB0473: JNDI bindings for session bean named 'RxNchlGatewayResponseSchedulingService' in deployment unit 'deployment "tms-service.war"' are as follows:
java:global/tms-service/RxNchlGatewayResponseSchedulingService!com.nepse.subsystem.banking.schedular.RxNchlGatewayResponseSchedulingService
java:app/tms-service/RxNchlGatewayResponseSchedulingService!com.nepse.subsystem.banking.schedular.RxNchlGatewayResponseSchedulingService
java:module/RxNchlGatewayResponseSchedulingService!com.nepse.subsystem.banking.schedular.RxNchlGatewayResponseSchedulingService
java:global/tms-service/RxNchlGatewayResponseSchedulingService
java:app/tms-service/RxNchlGatewayResponseSchedulingService
java:module/RxNchlGatewayResponseSchedulingService
.
.
.
{{ OTHER JNDI BINDINGS GOES HERE}}
.
.
.
14:05:40,377 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-7) WFLYEJB0473: JNDI bindings for session bean named 'GridConfigService' in deployment unit 'deployment "tms-service.war"' are as follows:
java:global/tms-service/GridConfigService!com.nepse.tms.component.gridconfig.service.GridConfigService
java:app/tms-service/GridConfigService!com.nepse.tms.component.gridconfig.service.GridConfigService
java:module/GridConfigService!com.nepse.tms.component.gridconfig.service.GridConfigService
java:global/tms-service/GridConfigService
java:app/tms-service/GridConfigService
java:module/GridConfigService
14:05:40,609 INFO [io.jaegertracing.internal.JaegerTracer] (MSC service thread 1-7) No shutdown hook registered: Please call close() manually on application shutdown.
14:05:40,614 INFO [org.wildfly.microprofile.opentracing.smallrye] (MSC service thread 1-7) WFLYTRAC0001: Tracer initialized: JaegerTracer(version=Java-1.6.0, serviceName=tms-service.war, reporter=RemoteReporter(sender=org.wildfly.extension.microprofile.opentracing.spi.sender.WildFlySender@d6f0017, closeEnqueueTimeout=1000), sampler=ConstSampler(decision=true, tags={sampler.type=const, sampler.param=true}), tags={hostname=lenovo, jaeger.version=Java-1.6.0, ip=127.0.1.1}, zipkinSharedRpcSpan=false, expandExceptionLogs=false, useTraceId128Bit=false)
14:05:40,615 INFO [org.infinispan.CONFIG] (MSC service thread 1-8) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
14:05:40,617 INFO [org.infinispan.CONFIG] (MSC service thread 1-8) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
14:05:40,679 INFO [org.infinispan.CONTAINER] (ServerService Thread Pool -- 78) ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.spi.marshalling.InfinispanProtoStreamMarshaller'
14:05:40,781 INFO [org.infinispan.CONTAINER] (ServerService Thread Pool -- 78) ISPN000025: wakeUpInterval is <= 0, not starting expired purge thread
14:05:40,782 WARN [org.jboss.as.ejb3] (MSC service thread 1-1) WFLYEJB0131: Jakarta Enterprise Beans com.nepse.subsystem.websockets.datasource.BroadcastDataRepo should not have a final or static method (getIndividualBroadcastResponseMap)
14:05:40,812 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 78) WFLYCLINF0002: Started http-remoting-connector cache from ejb container
14:05:40,952 WARN [org.jboss.as.ejb3] (MSC service thread 1-1) WFLYEJB0131: Jakarta Enterprise Beans com.nepse.trading.tradeBook.service.TradeBookService should not have a final or static method (distinctByKey)
14:05:41,205 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."tms-service.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."tms-service.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "tms-service.war"
at org.jboss...@17.0.3.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: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0024: Could not configure component OAuthHandlerNCHL
at org.jbo...@25.0.1.Final//org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:96)
at org.jboss...@17.0.3.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
... 8 more
Caused by: java.lang.ExceptionInInitializerError
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at org.jboss....@1.7.0.Final//org.jboss.invocation.proxy.AbstractProxyFactory.afterClassLoad(AbstractProxyFactory.java:107)
at org.jboss....@1.7.0.Final//org.jboss.invocation.proxy.AbstractClassFactory.defineClass(AbstractClassFactory.java:204)
at org.jboss....@1.7.0.Final//org.jboss.invocation.proxy.AbstractProxyFactory.getCachedMethods(AbstractProxyFactory.java:162)
at org.jbos...@25.0.1.Final//org.jboss.as.ejb3.component.stateless.StatelessComponentDescription$4.configure(StatelessComponentDescription.java:181)
at org.jbo...@25.0.1.Final//org.jboss.as.ee.component.DefaultComponentViewConfigurator.configure(DefaultComponentViewConfigurator.java:109)
at org.jbo...@25.0.1.Final//org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:82)
... 9 more
Caused by: java.lang.IllegalStateException: WFLYWELD0056: Weld is not initialized yet
at org.jbos...@25.0.1.Final//org.jboss.as.weld.WeldProvider.getCDI(WeldProvider.java:67)
at javax.enterprise.api//javax.enterprise.inject.spi.CDI.lambda$getCDIProvider$0(CDI.java:87)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176)
at java.base/java.util.TreeMap$KeySpliterator.tryAdvance(TreeMap.java:2763)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)
at javax.enterprise.api//javax.enterprise.inject.spi.CDI.getCDIProvider(CDI.java:88)
at javax.enterprise.api//javax.enterprise.inject.spi.CDI.current(CDI.java:64)
at deployment.tms-service.war//com.nepse.subsystem.banking.integration.membertoclient.authService.OAuthHandlerNCHL.<clinit>(OAuthHandlerNCHL.java:33)
... 17 more
14:05:41,906 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "tms-service.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"tms-service.war\".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of deployment \"tms-service.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0024: Could not configure component OAuthHandlerNCHL
Caused by: java.lang.ExceptionInInitializerError
Caused by: java.lang.IllegalStateException: WFLYWELD0056: Weld is not initialized yet"},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.unit.\"tms-service.war\".WeldStartService",
"jboss.deployment.unit.\"tms-service.war\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"tms-service.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"tms-service.war\".beanmanager, jboss.deployment.unit.\"tms-service.war\".WeldStartService]",
"jboss.deployment.unit.\"tms-service.war\".batch.artifact.factory is missing [jboss.deployment.unit.\"tms-service.war\".beanmanager]"
]
}
14:05:41,907 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "tms-service.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"tms-service.war\".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of deployment \"tms-service.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0024: Could not configure component OAuthHandlerNCHL
Caused by: java.lang.ExceptionInInitializerError
Caused by: java.lang.IllegalStateException: WFLYWELD0056: Weld is not initialized yet"},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.unit.\"tms-service.war\".WeldStartService",
"jboss.deployment.unit.\"tms-service.war\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"tms-service.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"tms-service.war\".beanmanager, jboss.deployment.unit.\"tms-service.war\".WeldStartService]",
"jboss.deployment.unit.\"tms-service.war\".batch.artifact.factory is missing [jboss.deployment.unit.\"tms-service.war\".beanmanager]"
]
}
14:05:41,907 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "tms-service.war" was rolled back with the following failure message:
{
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"tms-service.war\".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of deployment \"tms-service.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0024: Could not configure component OAuthHandlerNCHL
Caused by: java.lang.ExceptionInInitializerError
Caused by: java.lang.IllegalStateException: WFLYWELD0056: Weld is not initialized yet"},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.unit.\"tms-service.war\".WeldStartService",
"jboss.deployment.unit.\"tms-service.war\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"tms-service.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"tms-service.war\".beanmanager, jboss.deployment.unit.\"tms-service.war\".WeldStartService]",
"jboss.deployment.unit.\"tms-service.war\".batch.artifact.factory is missing [jboss.deployment.unit.\"tms-service.war\".beanmanager]"
]
}
14:05:41,910 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 15) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'tms-service.war#nepse-tms'
14:05:41,918 INFO [org.infinispan.manager.DefaultCacheManager] (ServerService Thread Pool -- 15) Stopping cache manager null on null
14:05:41,998 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0028: Stopped deployment tms-service.war (runtime-name: tms-service.war) in 90ms
[2023-03-18 02:05:42,031] Artifact tms-service:war: Error during artifact deployment. See server log for details.
[2023-03-18 02:05:42,031] Artifact tms-service:war: java.lang.Exception: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"tms-service.war\".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of deployment \"tms-service.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0024: Could not configure component OAuthHandlerNCHL
Caused by: java.lang.ExceptionInInitializerError
Caused by: java.lang.IllegalStateException: WFLYWELD0056: Weld is not initialized yet"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"tms-service.war\".WeldStartService","jboss.deployment.unit.\"tms-service.war\".beanmanager"],"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"tms-service.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"tms-service.war\".beanmanager, jboss.deployment.unit.\"tms-service.war\".WeldStartService]","jboss.deployment.unit.\"tms-service.war\".batch.artifact.factory is missing [jboss.deployment.unit.\"tms-service.war\".beanmanager]"]}