Authentication is configured for producers and consumers in activemq.xml
<plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="user1" password="pas1" groups="users,admins"/> </users> </simpleAuthenticationPlugin> </plugins>
Log in to the ActiveMQ console to view the queue, and an error is reported in the background
The error is as follows:
javax.jms.JMSSecurityException: User name [system] or password is invalid.
Screenshot of official website description
We open the configuration file webapps \ admin \ WEB-INF \ webconsole-embedded.xml to see
The user name and password used by the connection factory are stored in credentials.properties, so we add this group of accounts to the authentication list
<plugins> <simpleAuthenticationPlugin> <users> <authenticationUser username="user1" password="pas1" groups="users,admins"/> <authenticationUser username="system" password="manager" groups="users,admins"/> </users> </simpleAuthenticationPlugin> </plugins>
Restart the service and no error will be reported
Similar Posts:
- [Solved] hive beeline Connect Error: User:*** is not allowed to impersonate
- An error is reported when logging into harbor warehouse with docker login of other hosts
- FW: Fix – Your Credentials Did not Work in Remote Desktop
- [Solved] Access denied for user ‘Administrator’@’localhost’ (using password: YES)
- Rabbitmq simple configuration and oserror: [errno 9] bad file descriptor problem
- Su command error Su: permission denied [How to Solve]
- ORA-01940: cannot drop a user that is currently connected [How to Solve]
- Trouble Connecting to sql server Login failed. “The login is from an untrusted domain and cannot be used with Windows authentication”
- Solve the problem of unknown column ‘password’ in ‘field list’ in MySQL
- [github] Push remote: Invalid username or password