1 Reply Latest reply on Sep 6, 2013 2:41 PM by Sam K

    javax.security.sasl.SaslException: Authentication failed

    Sam K Newbie

      I'm trying to connect a test queue created in jboss 7.1.1.final standalone(hornetq) but it throws exception: Sep 6, 2013 12:18:00 PM org.jboss.remoting3.remote.RemoteConnection handleException
      ERROR: JBREM000200: Remote connection failed: javax.security.sasl.SaslException: Authentication failed: all available authentication mechanisms failed


      Added a user with applicationrealm and credentials are correct, verified application-user.properties under standalone/configuration.



      qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);

      qcon =qconFactory.createQueueConnection("jmsuser","password123");             
      qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
      queue = (Queue) ctx.lookup(queueName);
      qsender = qsession.createSender(queue);