2 Replies Latest reply on Aug 22, 2013 7:05 AM by daslan govender

    Queue injection failing

    daslan govender Newbie

      Hi

       

      I am getting this error when deploying:

       

      14:00:25,635 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 65) MSC000001: Failed to start service jboss.deployment.subunit."fnds-ear-1.0.0.ear"."fnds-components-1.0.0.jar".component.ErrorLogMessageBean.START: org.jboss.msc.service.StartException in service jboss.deployment.subunit."fnds-ear-1.0.0.ear"."fnds-components-1.0.0.jar".component.ErrorLogMessageBean.START: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory

                at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57) [wildfly-ee-8.0.0.Alpha3.jar:8.0.0.Alpha3]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_06]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_06]

                at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_06]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_06]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_06]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]

      Caused by: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory

                at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.activate(MessageDrivenComponent.java:212) [wildfly-ejb3-8.0.0.Alpha3.jar:8.0.0.Alpha3]

                at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.start(MessageDrivenComponent.java:183) [wildfly-ejb3-8.0.0.Alpha3.jar:8.0.0.Alpha3]

                at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54) [wildfly-ee-8.0.0.Alpha3.jar:8.0.0.Alpha3]

                ... 7 more

      Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory

                at org.hornetq.ra.inflow.HornetQActivationSpec.validate(HornetQActivationSpec.java:677)

                at org.jboss.jca.core.rar.EndpointImpl.activate(EndpointImpl.java:157)

                at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.activate(MessageDrivenComponent.java:210) [wildfly-ejb3-8.0.0.Alpha3.jar:8.0.0.Alpha3]

                ... 9 more

       

       

      14:00:25,665 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "fnds-ear-1.0.0.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"fnds-ear-1.0.0.ear\".\"fnds-components-1.0.0.jar\".component.ErrorLogMessageBean.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"fnds-ear-1.0.0.ear\".\"fnds-components-1.0.0.jar\".component.ErrorLogMessageBean.START: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory

          Caused by: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory

          Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory"}}

      14:00:25,667 ERROR [org.jboss.as.server] (XNIO-1 task-2) JBAS015870: Deploy of deployment "fnds-ear-1.0.0.ear" was rolled back with the following failure message:

      {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"fnds-ear-1.0.0.ear\".\"fnds-components-1.0.0.jar\".component.ErrorLogMessageBean.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"fnds-ear-1.0.0.ear\".\"fnds-components-1.0.0.jar\".component.ErrorLogMessageBean.START: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory

          Caused by: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory

          Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory"}}

       

       

      ErrorLogMessageBean is denifned as follows:

       

      @MessageDriven(mappedName = "java:jboss/jms/ErrorLogQueue", activationConfig = { @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"), @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue") })

      public class ErrorLogMessageBean implements MessageListener {

       

      ...

       

       

      standalone-full.xml

       

                      <jms-destinations>

                          <jms-queue name="testQueue">

                              <entry name="queue/test"/>

                              <entry name="java:jboss/exported/jms/queue/test"/>

                          </jms-queue>

                          <jms-queue name="jms/Tx0620Queue">

                              <entry name="jms/Tx0620Queue"/>

                              <entry name="/jms/Tx0620Queue"/>

                              <entry name="java:jboss/jms/Tx0620Queue"/>

                              <entry name="/Tx0620Queue"/>

                              <entry name="Tx0620Queue"/>

                          </jms-queue>

                          <jms-queue name="jms/ErrorLogQueue">

                              <entry name="jms/ErrorLogQueue"/>

                              <entry name="/jms/ErrorLogQueue"/>

                              <entry name="java:jboss/jms/ErrorLogQueue"/>

                              <entry name="/ErrorLogQueue"/>

                              <entry name="ErrorLogQueue"/>

                          </jms-queue>

                      </jms-destinations>

       

       

                      <jms-connection-factories>

                          <connection-factory name="InVmConnectionFactory">

                              <connectors>

                                  <connector-ref connector-name="in-vm"/>

                              </connectors>

                              <entries>

                                  <entry name="java:jboss/DefaultJMSConnectionFactory"/>

                                  <entry name="java:/ConnectionFactory"/>

                              </entries>

                          </connection-factory>

                          <connection-factory name="ServletConnectionFactory">

                              <connectors>

                                  <connector-ref connector-name="servlet"/>

                              </connectors>

                              <entries>

                                  <entry name="java:jboss/exported/jms/ServletConnectionFactory"/>

                              </entries>

                          </connection-factory>

                          <connection-factory name="RemoteConnectionFactory">

                              <connectors>

                                  <connector-ref connector-name="netty"/>

                              </connectors>

                              <entries>

                                  <entry name="java:jboss/exported/jms/RemoteConnectionFactory"/>

                              </entries>

                          </connection-factory>

                          <connection-factory name="jms/Tx0620QueueFactory">

                              <connectors>

                                  <connector-ref connector-name="netty"/>

                              </connectors>

                              <entries>

                                  <entry name="java:jboss/exported/jms/Tx0620QueueFactory"/>

                                  <entry name="jms/Tx0620QueueFactory"/>

                                  <entry name="/jms/Tx0620QueueFactory"/>

                                  <entry name="Tx0620QueueFactory"/>

                                  <entry name="/Tx0620QueueFactory"/>

                              </entries>

                          </connection-factory>

                          <connection-factory name="jms/ErrorLogQueueFactory">

                              <connectors>

                                  <connector-ref connector-name="netty"/>

                              </connectors>

                              <entries>

                                  <entry name="java:jboss/exported/jms/ErrorLogQueueFactory"/>

                                  <entry name="jms/ErrorLogQueueFactory"/>

                                  <entry name="/jms/ErrorLogQueueFactory"/>

                                  <entry name="ErrorLogQueueFactory"/>

                                  <entry name="/ErrorLogQueueFactory"/>

                              </entries>

                          </connection-factory>

                          <pooled-connection-factory name="hornetq-ra">

                              <transaction mode="xa"/>

                              <connectors>

                                  <connector-ref connector-name="in-vm"/>

                              </connectors>

                              <entries>

                                  <entry name="java:/JmsXA"/>

                              </entries>

                          </pooled-connection-factory>

                      </jms-connection-factories>

       

       

       

       

      Please assist