开发者社区> 问答> 正文

ActiveMQ 默认的 system 用户的密码是多少??报错

在 activemq.xml 中配置了身份验证,如下:

<plugins> <jaasAuthenticationPlugin configuration="activemq-domain"/> </plugins>

当在 web 控制台上 browse Queue 时,data/activemq.log 有如下报错:

java.lang.SecurityException: User name [system] or password is invalid.
    at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:80)[activemq-broker-5.10.2.jar:5.10.2]
    at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:102)[activemq-broker-5.10.2.jar:5.10.2]
    at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:809)[activemq-broker-5.10.2.jar:5.10.2]
    at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:139)[activemq-client-5.10.2.jar:5.10.2]
    at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:334)[activemq-broker-5.10.2.jar:5.10.2]
    at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:188)[activemq-broker-5.10.2.jar:5.10.2]
    at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)[activemq-client-5.10.2.jar:5.10.2]
    at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)[activemq-client-5.10.2.jar:5.10.2]
    at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:248)[activemq-broker-5.10.2.jar:5.10.2]
    at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:112)[activemq-client-5.10.2.jar:5.10.2]
    at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:42)[activemq-client-5.10.2.jar:5.10.2]
该将 system 用户的密码设置为多少? 

展开
收起
爱吃鱼的程序员 2020-06-10 15:02:48 661 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    在credentials.properties配置

    activemq.username=system

    activemq.password=manager
    guest.password=password
    2020-06-10 15:03:03
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载