No message listener of type jakarta.jms.MessageListener found in resource adapter

497 views
Skip to first unread message

Денис Завражнов

unread,
Jul 24, 2023, 5:45:59 AM7/24/23
to WildFly
Hi everyone!
When i deploy my WAR with MDB, i cought exception:
"jboss.deployment.unit.\"icl-bridge-0.2.8.999.jakarta.war\".component.Audit.CREATE" => "Failed to start service
    Caused by: java.lang.IllegalStateException: WFLYEJB0383: No message listener of type jakarta.jms.MessageListener found in resource adapter com.icl.wmq.jmsra.topic.main",
    "jboss.deployment.unit.\"icl-bridge-0.2.8.999.jakarta.war\".component.MessageOnCryptServerToBank.CREATE" => "Failed to start service
    Caused by: java.lang.IllegalStateException: WFLYEJB0383: No message listener of type jakarta.jms.MessageListener found in resource adapter icl.queue.client2bank",
    "jboss.deployment.unit.\"icl-bridge-0.2.8.999.jakarta.war\".component.MessageOnCryptServerToClient.CREATE" => "Failed to start service
    Caused by: java.lang.IllegalStateException: WFLYEJB0383: No message listener of type jakarta.jms.MessageListener found in resource adapter icl.queue.bank2client"


I attach my MDB example, and screen of my RA:
What i do wrong? Or what i need to see?
Java 17 WildFly 28.0.1
Снимок.PNG
code.PNG

Bartosz Baranowski

unread,
Jul 27, 2023, 12:38:53 PM7/27/23
to WildFly
Whats the deployment structure?
Do you have some specific descriptor that controls visibility(ie jboss-structure.xml)?

cf...@redhat.com

unread,
Aug 8, 2023, 10:00:41 AM8/8/23
to WildFly
The error is thrown from org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService (https://github.com/wildfly/wildfly/blob/a37098d46aee2474e281ccf47b621cd3737337b9/ejb3/src/main/java/org/jboss/as/ejb3/component/messagedriven/MessageDrivenComponentCreateService.java#L128 ), which tries to collect the supported listeners from the specified resource adaptor. In your case, it's icl.queue.bank2client.

So it's worth checking if that resource adaptor supports jakarta API  (jakarta.jms) vs javax.jms.

Emmanuel Hugonnet

unread,
Aug 8, 2023, 10:46:07 AM8/8/23
to cf...@redhat.com, WildFly
Is your rar jakartaee 10 compliant ?

Le 08/08/2023 à 16:00, cf...@redhat.com a écrit :
> The error is thrown from org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService
> (https://github.com/wildfly/wildfly/blob/a37098d46aee2474e281ccf47b621cd3737337b9/ejb3/src/main/java/org/jboss/as/ejb3/component/messagedriven/MessageDrivenComponentCreateService.java#L128
> ), which tries to collect the supported listeners from the specified resource adaptor. In your case, it's /icl.queue.bank2client./
> /
> /
> /So it's worth checking if that resource adaptor supports jakarta API  (jakarta.jms) vs javax.jms./
> On Thursday, July 27, 2023 at 12:38:53 PM UTC-4 Bartosz Baranowski wrote:
>
> Whats the deployment structure?
> Do you have some specific descriptor that controls visibility(ie jboss-structure.xml)?
>
> On Monday, July 24, 2023 at 11:45:59 AM UTC+2 Денис Завражнов wrote:
>
> Hi everyone!
> When i deploy my WAR with MDB, i cought exception:
> /"jboss.deployment.unit.\"icl-bridge-0.2.8.999.jakarta.war\".component.Audit.CREATE" => "Failed to start service
>     Caused by: java.lang.IllegalStateException: WFLYEJB0383: No message listener of type jakarta.jms.MessageListener found in
> resource adapter com.icl.wmq.jmsra.topic.main",
> "jboss.deployment.unit.\"icl-bridge-0.2.8.999.jakarta.war\".component.MessageOnCryptServerToBank.CREATE" => "Failed to start service
>     Caused by: java.lang.IllegalStateException: WFLYEJB0383: No message listener of type jakarta.jms.MessageListener found in
> resource adapter icl.queue.client2bank",
> "jboss.deployment.unit.\"icl-bridge-0.2.8.999.jakarta.war\".component.MessageOnCryptServerToClient.CREATE" => "Failed to start service
>     Caused by: java.lang.IllegalStateException: WFLYEJB0383: No message listener of type jakarta.jms.MessageListener found in
> resource adapter icl.queue.bank2client"/
> /
> /
> I attach my MDB example, and screen of my RA:
> What i do wrong? Or what i need to see?
> Java 17 WildFly 28.0.1
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/wildfly/fe1d0f51-ad6e-4728-ad75-27c714ab622fn%40googlegroups.com
> <https://groups.google.com/d/msgid/wildfly/fe1d0f51-ad6e-4728-ad75-27c714ab622fn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Roman Pikalyuk

unread,
Sep 22, 2023, 3:43:36 PM9/22/23
to WildFly
for me it helped to change the classes with the same names from jakarta.jms to javax.jms package! thank you!

вівторок, 8 серпня 2023 р. о 16:00:41 UTC+2 cf...@redhat.com пише:
Reply all
Reply to author
Forward
0 new messages