0 Replies Latest reply on Nov 12, 2010 10:52 AM by Alla Winter

    HornetQException[errorCode=105 message=Unable to validate user: null for check type CONSUME for address jms.queue.email]

    Alla Winter Newbie

      I am trying to deploy MDB to JBOSS AS 6.0...-M4 and I am getting this exception during server startup.

      I started to get these messages after I created a queue via JBOSS admin console.  Here how the info about queue is displayed:

      General Properties

      Name: jms.queue.email
      Version: a JMS Queue
      Description: --

      Traits

      Name: email
      JNDI Binding: emai
      Address: jms.queue.email
      Temporary: false
      Paused: false

       

      I was trying to find where ( in what xml) the above queue is defined and what seccurity roles are associated with it, but I could not find it anywhere.  I would appreciate if you would let me know where to find the queue  definition

       

      The hornetq directory in depoy contain 4 XMLs:

      hornetq-configuration.xml

      hornetq-jboss-beans.xml

      hornetq-jms.xml

      jms-ds.xml

        The timestamp of the files sugests that they remain unchanged since the default installation.

       

      Any help would be greatly appreciated.  Thanks in advance

       

       

      P.S.  Here it is my EJB

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

      package

       

       

      com.cobrasource.ejb;

      import

       

       

      javax.annotation.security.RunAs;

      import

       

       

      javax.ejb.ActivationConfigProperty;

      import

       

       

      javax.ejb.MessageDriven;

      import

       

       

      javax.jms.Message;

      import

       

       

      javax.jms.MessageListener;

      @MessageDriven

       

       

      (

      activationConfig = {

       

       

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

      ),

       

       

      @ActivationConfigProperty(propertyName="destination", propertyValue="queue/email"

      )

      })

      @RunAs

       

       

      ("guest")

      public

       

       

      class EmailBean implements

      MessageListener {

       

       

      public

      EmailBean() {

      }

       

       

      /**

      *

       

       

      @see

      MessageListener#onMessage(Message)

      */

       

       

      public void

      onMessage(Message message) {

      System.

       

      out.println("got the message"

      );

      }

      }