1 Reply Latest reply on Sep 23, 2014 4:11 PM by Robert Smith

    MDB can be deployed as WAR, but encounter problem while deploying as EAR in Wildfly 8.1.0

    sankarts Newbie

      I am using WildFly Server 8,1.0 which has built-in HornetQ in it.

       

      The sample class definition looks like

      @MessageDriven(name = "HelloWorldQueueMDB", activationConfig = {

              @ActivationConfigProperty(propertyName = "destinationLookup", propertyValue = "queue/HELLOWORLDMDBQueue"),

              @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

              @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") })

      public class HelloWorldQueueMDB implements MessageListener {

       

      When packed as WAR file, this MDB can be deployed with no issues.

       

      Nevertheless, when trying to build this MDB along with couple of other session beans, the EAR could not be deployed.

       

      It throws

      java.lang.IllegalStateException: JBAS014521: No message listener of type javax.jms.MessageListener found in resource adapter hornetq-ra",

       

      Would appreciate any sort of help. Thanks in advance.

       

      Detailed stack trace as follows.

      2014-07-23 16:29:16,729 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "icebreaker-ear.ear")]) - failure description: {"JBAS014671: Failed services" => {

          "jboss.deployment.subunit.\"icebreaker-ear.ear\".\"icebreaker-ejb.jar\".component.HelloWorldQueueMDB.CREATE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"icebreaker-ear.ear\".\"icebreaker-ejb.jar\".component.HelloWorldQueueMDB.CREATE: Failed to start service

          Caused by: java.lang.IllegalStateException: JBAS014521: No message listener of type javax.jms.MessageListener found in resource adapter hornetq-ra",

          "jboss.deployment.subunit.\"icebreaker-ear.ear\".\"icebreaker-ejb.jar\".component.HelloWorldTopicMDB.CREATE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"icebreaker-ear.ear\".\"icebreaker-ejb.jar\".component.HelloWorldTopicMDB.CREATE: Failed to start service

          Caused by: java.lang.IllegalStateException: JBAS014521: No message listener of type javax.jms.MessageListener found in resource adapter hornetq-ra"

      }}

      2014-07-23 16:29:16,733 ERROR [org.jboss.as.server] (management-handler-thread - 1) JBAS015870: Deploy of deployment "icebreaker-ear.ear" was rolled back with the following failure message:

      {"JBAS014671: Failed services" => {

          "jboss.deployment.subunit.\"icebreaker-ear.ear\".\"icebreaker-ejb.jar\".component.HelloWorldQueueMDB.CREATE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"icebreaker-ear.ear\".\"icebreaker-ejb.jar\".component.HelloWorldQueueMDB.CREATE: Failed to start service

          Caused by: java.lang.IllegalStateException: JBAS014521: No message listener of type javax.jms.MessageListener found in resource adapter hornetq-ra",

          "jboss.deployment.subunit.\"icebreaker-ear.ear\".\"icebreaker-ejb.jar\".component.HelloWorldTopicMDB.CREATE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"icebreaker-ear.ear\".\"icebreaker-ejb.jar\".component.HelloWorldTopicMDB.CREATE: Failed to start service

          Caused by: java.lang.IllegalStateException: JBAS014521: No message listener of type javax.jms.MessageListener found in resource adapter hornetq-ra"

      }}