3 Replies Latest reply on Aug 27, 2012 12:37 AM by rangaraju

    Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password

    rangaraju

      Receiving error when trying to start domain.sh (for the first time on the server). This is domain controller host.

       

      Eror is:  Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password

       

      I also see messages telling that admin user's credentials need to be checked. But that user account is not configured at all. I verified in mgmt-user.properties files and found that admin is commented because we are using another customer userid as admin user account. Do i need to pass some arguments when starting domain.sh on domain controller ?

       

      Attached files have the xml files and the output of domain.sh script.

       

      This is JBOSS AS 7.1.1 on red hat linux 6.2. Java is 64-bit java7.

       

      Kindly assist...

        • 1. Re: Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password
          jaysensharma

          Hi,

           

             In your domain.xml file inside messaging subsystem can you try defining <cluster-user> and <cluster-password>

           

          <subsystem xmlns="urn:jboss:domain:messaging:1.1">
          
                  <hornetq-server> 
                <clustered>true</clustered>
                <cluster-user>someuser</cluster-user>
                <cluster-password>somepassword</cluster-password>
          
          
          
          
          

           

           

             Additionally refer to the  JIRA: https://issues.jboss.org/browse/JBPAPP-8381

           

          Additionally: HornetQ defaults to the "other" security domain which can be manipulated with the bin/add-user.sh script (using the "ApplicationRealm" (NOT in Management Realm)).  Any user that wishes to connect for JMS will need to be in that security domain.

           

          I can see from your log that the username is passed as "admin"  are you sure that this user is present in your ApplicationRealm?

           

          [Server:drools01a] 11:27:58,933 ERROR [org.hornetq.core.protocol.core.impl.HornetQPacketHandler] (Old I/O server worker (parentId: 588421981, [id: 0x23129b5d, jasper1/172.16.125.131:5745])) Failed to create session : HornetQException[errorCode=105 message=Unable to validate user: admin]
          [Server:drools01a]     at org.hornetq.core.security.impl.SecurityStoreImpl.authenticate(SecurityStoreImpl.java:147) [hornetq-core-2.2.13.Final.jar:]
          [Server:drools01a]     at org.hornetq.core.server.impl.HornetQServerImpl.createSession(HornetQServerImpl.java:807) [hornetq-core-2.2.13.Final.jar:]
          [Server:drools01a]     at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handleCreateSession(HornetQPacketHandler.java:187) [hornetq-core-2.2.13.Final.jar:]
          [Server:drools01a]     at org.hornetq.core.protocol.core.impl.HornetQPacketHandler.handlePacket(HornetQPacketHandler.java:85) [hornetq-core-2.2.13.Final.jar:]
          
          

           

           

          Or try adding a user with name "admin" in your ApplicationRealm as following:

           

           

          ./add-user.sh  admin admin123  ApplicationRealm
          
          • 2. Re: Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password
            rangaraju

            ok I tried both approaches and reviewed many articles related to this issue in jboss community and tried those ways too but invain.

            attaching new logs.

             

            please assist.

            • 3. Re: Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password
              rangaraju

              Issue resolved:

              I re-installed JBOSS afresh and added the cluster-user and cluster-password entries (as discussed above) into domain.xml file. However I did not create that user account using add_users.sh this time. It worked.

               

              thank you for feedback. it was helpful.