-
1. Re: Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password
jaysensharma Aug 26, 2012 9:45 AM (in response to rangaraju)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 Aug 26, 2012 2:09 PM (in response to jaysensharma)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.
-
application-users.properties.zip 666 bytes
-
mgmt-users.properties.zip 768 bytes
-
nohup.out.zip 6.0 KB
-
host.xml 2.2 KB
-
domain.xml 77.2 KB
-
-
3. Re: Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password
rangaraju Aug 27, 2012 12:37 AM (in response to 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.