3 Replies Latest reply on Oct 8, 2009 4:37 AM by Gaurav Bansal

    User: null is NOT authenticated

    Srinivas Retneni Newbie

      Hi

      I am migrating my project from jboss 2.0 to jboss-4.2.3.GA, At the time server startup, i am trying to create the queueConnction, the following error message is throwing.

      javax.jms.JMSSecurityException: User: null is NOT authenticated.


      any baody can give some suggestions to overcome this error.

      thanks in adv.

      Srinivas

        • 1. Re: User: null is NOT authenticated
          Yong Hao Gao Master

          Can you put the source code of your getting the connection here? The code may help us find out what's the problem. Thanks.

          • 2. Re: User: null is NOT authenticated
            Srinivas Retneni Newbie

            Hi

            I am changed the dsJndiName default value as my local datasource jndi-name in conf/login-config.xml file.

            Now it is working fine.

            Srinivas

            • 3. Re: User: null is NOT authenticated
              Gaurav Bansal Newbie

              We are currently using JBoss v4.2.3.ga and have upgraded JBoss messaging to v 1.4.4 and JBoss remoting to v2.2.3.

              JMS messages are sent & received without any exceptions for initial 3-4 days. After that we are observing exception messagesjavax.jms.JMSSecurityException: User null is NOT authenticated, whenever we are trying to create the connection.

              We have seen that there is no deadlock on JBoss AS and other DB operations are working normally.

              We are using the following security domain for JMS

              <application-policy name="messaging">

              <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
              flag = "required">
              <module-option name = "unauthenticatedIdentity">guest</module-option>
              <module-option name = "dsJndiName">java:/DefaultDS</module-option>
              <module-option name = "principalsQuery">SELECT PASSWD FROM JBM_USER WHERE USER_ID=?</module-option>
              <module-option name = "rolesQuery">SELECT ROLE_ID, 'Roles' FROM JBM_ROLE WHERE USER_ID=?</module-option>
              </login-module>

              </application-policy>