servicemix更改karaf密码

时间:2016-06-21 10:14:47

标签: java authentication activemq apache-karaf apache-servicemix

我正在运行ServiceMix 5.3.2实例。 我更改了karaf密码,更改了p:not(strong) 文件,如下所示:

etc/users.properties

问题是当我使用activemq webconsol时,我在日志中有这个例外

     karaf = karaf_2,_g_:admingroup

我想我必须更改webconsole的默认密码,但我不明白该怎么做。 我尝试更改文件 2016-06-21 12:07:43,296 | WARN | .0.1:50986@61616 | TransportConnection | ? ? | 90 - org.apache.activemq.activemq-osgi - 5.10.2 | Failed to add Connection ID:xxxxx-43557-1466503663160-1:1 java.lang.SecurityException: User name [karaf] or password is invalid. at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:80)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:102)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:809)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:79)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:139)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:334)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:188)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:270)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)[90:org.apache.activemq.activemq-osgi:5.10.2] at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)[90:org.apache.activemq.activemq-osgi:5.10.2] at java.lang.Thread.run(Thread.java:745)[:1.7.0_80] Caused by: javax.security.auth.login.FailedLoginException: login failed at org.apache.karaf.jaas.modules.properties.PropertiesLoginModule.login(PropertiesLoginModule.java:127) at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83)[karaf-jaas-boot.jar:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_80] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_80] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_80] at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_80] at javax.security.auth.login.LoginContext.invoke(LoginContext.java:762)[:1.7.0_80] at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)[:1.7.0_80] at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)[:1.7.0_80] at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)[:1.7.0_80] at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_80] at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)[:1.7.0_80] at javax.security.auth.login.LoginContext.login(LoginContext.java:595)[:1.7.0_80] at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:73)[90:org.apache.activemq.activemq-osgi:5.10.2] ... 13 more 2016-06-21 12:07:43,298 | WARN | .0.1:50986@61616 | Service | ? ? | 90 - org.apache.activemq.activemq-osgi - 5.10.2 | Security Error occurred: User name [karaf] or password is invalid. org.apache.jasper.JasperException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queueBrowser' defined in ServletContext resource [/WEB-INF/webconsole-query.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.web.QueueBrowseQuery]: Constructor threw exception; nested exception is javax.jms.JMSSecurityException: User name [karaf] or password is invalid. 2016-06-21 12:07:43,304 | WARN | qtp2055058088-69 | ServletHandler | ? ? | 64 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.15.v20140411 | ,但没有成功。 提前致谢

0 个答案:

没有答案