I have been trying to use with resource adapter with WildFly 22, but it fails to deploy. The error synopsis is:
[02/24/21 21:36:43:312 UTC] [Controller Boot Thread] [management-op] [ERROR ] WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "sqs-jms-rar-1.0.0.rar")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.ra.deployment.\"sqs-jms-rar-1.0.0.rar_sqs-jms-ra\"" => "WFLYJCA0046: Failed to start RA deployment [sqs-jms-rar-1.0.0.rar]
Caused by: org.jboss.jca.deployers.common.DeployException: WFLYJCA0072: Deployment com.integralblue.sqsjmara.SQSJMSActivationSpec failed
Caused by: java.lang.NoSuchMethodException: WFLYJCA0074: Method setDestinationType not found"}}
[02/24/21 21:36:43:308 UTC] [ServerService Thread Pool -- 82] [fail ] [ERROR ] MSC000001: Failed to start service jboss.ra.deployment."sqs-jms-rar-1.0.0.rar_sqs-jms-ra": org.jboss.msc.service.StartException in service jboss.ra.deployment."sqs-jms-rar-1.0.0.rar_sqs-jms-ra": WFLYJCA0046: Failed to start RA deployment [sqs-jms-rar-1.0.0.rar]
at [email protected]//org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$2.run(AbstractResourceAdapterDeploymentService.java:340)
at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:834)
at [email protected]//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: org.jboss.jca.deployers.common.DeployException: WFLYJCA0072: Deployment com.integralblue.sqsjmara.SQSJMSActivationSpec failed
at [email protected]//org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$AbstractWildFlyRaDeployer.initAndInject(AbstractResourceAdapterDeploymentService.java:646)
at [email protected]//org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.initActivationSpec(AbstractResourceAdapterDeployer.java:773)
at [email protected]//org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1928)
at [email protected]//org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService$WildFlyRaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:190)
at [email protected]//org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:128)
at [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at [email protected]//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NoSuchMethodException: WFLYJCA0074: Method setDestinationType not found
at [email protected]//org.jboss.as.connector.util.Injection.inject(Injection.java:134)
at [email protected]//org.jboss.as.connector.util.Injection.inject(Injection.java:87)
at [email protected]//org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$AbstractWildFlyRaDeployer.initAndInject(AbstractResourceAdapterDeploymentService.java:633)
... 12 more
I thought maybe I could avoid the error by commenting out the ActivationConfigProperty for destinationType:
@MessageDriven(activationConfig = {
// @ActivationConfigProperty(propertyName = "destinationType",propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination",propertyValue = "AlertQueue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode",propertyValue = "Auto-acknowledge")
})
since it looks like the code is written to set the initial value to javax.jms.Queue anyway, but I still get the same error. So, while I don't know why WildFly is trying to call the setter, it also seems like it would be easy (and good form) to add the missing setter. What do you think?