5 Replies Latest reply on Dec 5, 2012 2:16 PM by Milan Milas

    Can't log in to the Active MQ Web Console on ESB that is in Fabric

    Milan Milas Newbie

      Actions:

      MachineA winxpa: FMC Console

      fabric:profile-create --parents mq mq-console

      fabric:profile-edit -f mq-web-console mq-console

       

      MachineB winxpb: ESB

      fabric:join winxpa

       

      MachineA winxpa: FMC Console

      fabric:container-add-profile root mq-console

       

      -activemq-web-console is added to the ESB

      accesing it on the machineB winxpb:

      http://localhost:8181/activemqweb

      user/pass: admin/admin

       

      I got exception. This is plain vanila installation on both machines with no applications

      installed.

       

      I need to mention that I did manage to make them work after addin admin user to every

      possible realm - this didnt help. But I did manage to get ActiveMQ web console once I have removed two sections  from jetty.xml and on the second step I returned only first one. I have as well added the second one again and I was still able to access dashboard. After that I restored Vm to original snapshot with plain installations and now I am again not able to make it work?

       

      Am I missing something? I have spent almost two days with this and my mistake was

      not to save snapshot one I have make it work.

       

      HTTP ERROR 500

       

      Problem accessing /activemqweb/index.jsp. Reason:

       

          java.lang.SecurityException: Authentication failed

      Caused by:

       

      javax.el.ELException: java.lang.SecurityException: Authentication failed

           at javax.el.BeanELResolver.getValue(BeanELResolver.java:298)

           at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)

           at com.sun.el.parser.AstValue.getValue(AstValue.java:138)

           at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)

           at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)

           at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:51)

           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)

           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)

           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

           at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:132)

           at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:127)

           at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)

           at org.ops4j.pax.web.jsp.JspServletWrapper.service(JspServletWrapper.java:124)

           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1359)

           at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)

           at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

           at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:169)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)

           at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)

           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)

           at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:471)

           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)

           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)

           at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)

           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)

           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)

           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)

           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

           at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72)

           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)

           at org.eclipse.jetty.server.Server.handle(Server.java:349)

           at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)

           at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)

           at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)

           at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)

           at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)

           at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)

           at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)

           at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)

           at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)

           at java.lang.Thread.run(Thread.java:722)

      Caused by: java.lang.SecurityException: Authentication failed

           at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:101)

           at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)

           at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)

           at sun.rmi.transport.Transport$1.run(Transport.java:177)

           at sun.rmi.transport.Transport$1.run(Transport.java:174)

           at java.security.AccessController.doPrivileged(Native Method)

           at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

           at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)

           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

           at java.lang.Thread.run(Thread.java:722)

           at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)

           at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)

           at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)

           at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)

           at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2370)

           at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:296)

           at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)

           at org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:146)

           at org.apache.activemq.web.RemoteJMXBrokerFacade.getMBeanServerConnection(RemoteJMXBrokerFacade.java:114)

           at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerAdmin(RemoteJMXBrokerFacade.java:88)

           at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerName(RemoteJMXBrokerFacade.java:101)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)

           ... 53 more

      Caused by: javax.security.auth.login.FailedLoginException: User doesn't exist

           at org.fusesource.fabric.jaas.ZookeeperLoginModule.login(ZookeeperLoginModule.java:110)

           at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)

           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)

           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)

           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)

           at java.security.AccessController.doPrivileged(Native Method)

           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)

           at javax.security.auth.login.LoginContext.login(LoginContext.java:594)

           at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:78)

           at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)

           at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)

           at sun.rmi.transport.Transport$1.run(Transport.java:177)

           at sun.rmi.transport.Transport$1.run(Transport.java:174)

           at java.security.AccessController.doPrivileged(Native Method)

           at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

           at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)

           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

           ... 1 more

      Caused by:

       

      java.lang.SecurityException: Authentication failed

           at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:101)

           at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)

           at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)

           at sun.rmi.transport.Transport$1.run(Transport.java:177)

           at sun.rmi.transport.Transport$1.run(Transport.java:174)

           at java.security.AccessController.doPrivileged(Native Method)

           at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

           at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)

           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

           at java.lang.Thread.run(Thread.java:722)

           at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)

           at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)

           at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)

           at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)

           at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2370)

           at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:296)

           at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)

           at org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:146)

           at org.apache.activemq.web.RemoteJMXBrokerFacade.getMBeanServerConnection(RemoteJMXBrokerFacade.java:114)

           at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerAdmin(RemoteJMXBrokerFacade.java:88)

           at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerName(RemoteJMXBrokerFacade.java:101)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)

           at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)

           at com.sun.el.parser.AstValue.getValue(AstValue.java:138)

           at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)

           at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)

           at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:51)

           at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

           at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)

           at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)

           at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)

           at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

           at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:132)

           at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:127)

           at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)

           at org.ops4j.pax.web.jsp.JspServletWrapper.service(JspServletWrapper.java:124)

           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1359)

           at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)

           at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)

           at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:169)

           at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330)

           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)

           at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)

           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)

           at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:471)

           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)

           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)

           at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)

           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)

           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)

           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)

           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

           at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72)

           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)

           at org.eclipse.jetty.server.Server.handle(Server.java:349)

           at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)

           at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)

           at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)

           at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)

           at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)

           at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)

           at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)

           at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)

           at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)

           at java.lang.Thread.run(Thread.java:722)

      Caused by: javax.security.auth.login.FailedLoginException: User doesn't exist

           at org.fusesource.fabric.jaas.ZookeeperLoginModule.login(ZookeeperLoginModule.java:110)

           at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)

           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)

           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)

           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)

           at java.security.AccessController.doPrivileged(Native Method)

           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)

           at javax.security.auth.login.LoginContext.login(LoginContext.java:594)

           at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:78)

           at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)

           at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)

           at sun.rmi.transport.Transport$1.run(Transport.java:177)

           at sun.rmi.transport.Transport$1.run(Transport.java:174)

           at java.security.AccessController.doPrivileged(Native Method)

           at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

           at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)

           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

           ... 1 more

      Caused by:

       

      javax.security.auth.login.FailedLoginException: User doesn't exist

           at org.fusesource.fabric.jaas.ZookeeperLoginModule.login(ZookeeperLoginModule.java:110)

           at org.apache.karaf.jaas.boot.ProxyLoginModule.login(ProxyLoginModule.java:83)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)

           at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)

           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)

           at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)

           at java.security.AccessController.doPrivileged(Native Method)

           at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)

           at javax.security.auth.login.LoginContext.login(LoginContext.java:594)

           at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:78)

           at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)

           at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)

           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

           at java.lang.reflect.Method.invoke(Method.java:601)

           at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)

           at sun.rmi.transport.Transport$1.run(Transport.java:177)

           at sun.rmi.transport.Transport$1.run(Transport.java:174)

           at java.security.AccessController.doPrivileged(Native Method)

           at sun.rmi.transport.Transport.serviceCall(Transport.java:173)

           at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)

           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)

           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

           at java.lang.Thread.run(Thread.java:722)

      Powered by Jetty://

        • 1. Re: Can't log in to the Active MQ Web Console on ESB that is in Fabric
          Milan Milas Newbie

          If I add new user user/pass:milan/milan to zookeeper realm and role milan (does not exist):

          I will get error message: !role

           

          If I change role to admin, I am getting same message from my previous post.

          • 2. Re: Can't log in to the Active MQ Web Console on ESB that is in Fabric
            Milan Milas Newbie

            I have installed Windows 7 on VM and have followed same steps,

            and got same error message:

             

            HTTP ERROR 500

            Problem accessing /activemqweb/index.jsp. Reason:

             

            java.lang.SecurityException: Authentication failed

             

             

            User doesn't exist

                 at org.fusesource.fabric.jaas.ZookeeperLoginModule.login

            • 3. Re: Can't log in to the Active MQ Web Console on ESB that is in Fabric
              Milan Milas Newbie

              FMC Machine A

              2012-12-04 21:35:12,627 | DEBUG | uds.credentials) | configadmin                      | 5 - org.apache.felix.configadmin - 1.3.0.fuse-70-097 | getProperties()

              2012-12-04 21:35:13,783 | TRACE | sid:0 cport:-1): | PrepRequestProcessor             | 43 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.2.fuse-097 | :Psessionid:0x13b67d1e5fd0002 type:getData cxid:0xf5 zxid:0xfffffffffffffffe txntype:unknown reqpath:/fabric/authentication/users

              2012-12-04 21:35:13,783 | DEBUG | SyncThread:0     | FinalRequestProcessor            | 43 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.2.fuse-097 | Processing request:: sessionid:0x13b67d1e5fd0002 type:getData cxid:0xf5 zxid:0xfffffffffffffffe txntype:unknown reqpath:/fabric/authentication/users

              2012-12-04 21:35:13,783 | TRACE | SyncThread:0     | FinalRequestProcessor            | 43 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.2.fuse-097 | :Esessionid:0x13b67d1e5fd0002 type:getData cxid:0xf5 zxid:0xfffffffffffffffe txntype:unknown reqpath:/fabric/authentication/users

              2012-12-04 21:35:13,783 | DEBUG | SyncThread:0     | FinalRequestProcessor            | 43 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.2.fuse-097 | sessionid:0x13b67d1e5fd0002 type:getData cxid:0xf5 zxid:0xfffffffffffffffe txntype:unknown reqpath:/fabric/authentication/users

              2012-12-04 21:35:14,330 | DEBUG | SyncThread:0     | FinalRequestProcessor            | 43 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.2.fuse-097 | Processing request:: sessionid:0x13b67d1e5fd0000 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a

              2012-12-04 21:35:14,330 | DEBUG | SyncThread:0     | FinalRequestProcessor            | 43 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.2.fuse-097 | sessionid:0x13b67d1e5fd0000 type:ping cxid:0xfffffffffffffffe zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a

              2012-12-04 21:35:14,330 | DEBUG | hread(WINA:2181) | ClientCnxn                       | 43 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.2.fuse-097 | Got ping response for sessionid: 0x13b67d1e5fd0000 after 0ms

               

               

              ESB Machine B

              21:35:13,893 | DEBUG | n(4)-192.168.0.4 | tcp                              |  -  -  | RMI TCP Connection(4)-192.168.0.4: (port 44444) suggesting 192.168.0.4:49325

              21:35:13,894 | DEBUG | emqweb/index.jsp | tcp                              |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: server suggested 192.168.0.4:49325

              21:35:13,894 | DEBUG | emqweb/index.jsp | tcp                              |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: using 192.168.0.4:0

              21:35:13,895 | DEBUG | emqweb/index.jsp | ref                              |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: opnum = -1089742558549201240

              21:35:13,895 | DEBUG | emqweb/index.jsp | misc                             |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: write remote call header...

              21:35:13,896 | DEBUG | emqweb/index.jsp | misc                             |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: getting output stream

              21:35:13,897 | DEBUG | n(4)-192.168.0.4 | tcp                              |  -  -  | RMI TCP Connection(4)-192.168.0.4: (port 44444) client using 192.168.0.4:0

              21:35:13,897 | DEBUG | n(4)-192.168.0.4 | tcp                              |  -  -  | RMI TCP Connection(4)-192.168.0.4: (port 44444) op = 80

              21:35:13,897 | DEBUG | n(4)-192.168.0.4 | misc                             |  -  -  | RMI TCP Connection(4)-192.168.0.4: getting input stream

              21:35:13,897 | DEBUG | n(4)-192.168.0.4 | misc                             |  -  -  | RMI TCP Connection(4)-192.168.0.4: call dispatcher

              21:35:13,897 | DEBUG | n(4)-192.168.0.4 | call                             |  -  -  | RMI TCP Connection(4)-192.168.0.4: [192.168.0.4: javax.management.remote.rmi.RMIJRMPServerImpl[7ebc2146:13b67d5e12e:-7ffe, 6134043838511665095]: public abstract javax.management.remote.rmi.RMIConnection javax.management.remote.rmi.RMIServer.newClient(java.lang.Object) throws java.io.IOException]

              21:35:13,898 | DEBUG | n(4)-192.168.0.4 | loader                           |  -  -  | RMI TCP Connection(4)-192.168.0.4: name = "[Ljava.lang.String;", codebase = ""

              21:35:13,899 | DEBUG | n(4)-192.168.0.4 | loader                           |  -  -  | RMI TCP Connection(4)-192.168.0.4: (thread context class loader: org.apache.karaf.management.server )

              21:35:13,899 | DEBUG | n(4)-192.168.0.4 | loader                           |  -  -  | RMI TCP Connection(4)-192.168.0.4: class "[Ljava.lang.String;" found via thread context class loader (no security manager: codebase disabled), defined by null

              21:35:13,899 | DEBUG | n(4)-192.168.0.4 | rmi                              |  -  -  | making new client

              21:35:13,899 | DEBUG | n(4)-192.168.0.4 | rmi                              |  -  -  | got authenticator: org.apache.karaf.management.JaasAuthenticator

              21:35:13,903 | DEBUG | hread(WINA:2181) | ClientCnxn                       | 45 - org.fusesource.fabric.fabric-linkedin-zookeeper - 7.0.2.fuse-097 | Reading reply sessionid:0x13b67d1e5fd0002, packet:: clientPath:null serverPath:null finished:false header:: 245,4  replyHeader:: 245,757,0  request:: '/fabric/authentication/users,F  response:: #61646d696e3d7b43525950547d32313233326632393761353761356137343338393461306534613830316663337b43525950547d2c61646d696eda73797374656d3d7b43525950547d31643032353863323434306138643139653731363239326232333165333139307b43525950547d2c61646d696eda6d696c616e203d207b43525950547d38333232376137323161333336336432633738333831363634633738363537667b43525950547d2c61646d696eda,s{119,596,1354647926021,1354653622558,2,0,0,0,183,0,119}

              21:35:13,905 | DEBUG | n(4)-192.168.0.4 | rmi                              |  -  -  | Authentication failed: java.lang.SecurityException: Authentication failed

              21:35:13,905 | DEBUG | n(4)-192.168.0.4 | call                             |  -  -  | RMI TCP Connection(4)-192.168.0.4: exception:

              java.lang.SecurityException: Authentication failed

                   at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:101)[16:org.apache.karaf.management.server:2.2.5.fuse-70-097]

                   at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)

                   at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)

                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_09]

                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_09]

                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_09]

                   at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_09]

                   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)[:1.7.0_09]

                   at sun.rmi.transport.Transport$1.run(Transport.java:177)[:1.7.0_09]

                   at sun.rmi.transport.Transport$1.run(Transport.java:174)[:1.7.0_09]

                   at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_09]

                   at sun.rmi.transport.Transport.serviceCall(Transport.java:173)[:1.7.0_09]

                   at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)[:1.7.0_09]

                   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)[:1.7.0_09]

                   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)[:1.7.0_09]

                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_09]

                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_09]

                   at java.lang.Thread.run(Thread.java:722)[:1.7.0_09]

              Caused by: javax.security.auth.login.FailedLoginException: User doesn't exist

                   at org.fusesource.fabric.jaas.ZookeeperLoginModule.login(ZookeeperLoginModule.java:110)

                   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_09]

                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_09]

                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_09]

                   at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_09]

                   at javax.security.auth.login.LoginContext.invoke(LoginContext.java:784)[:1.7.0_09]

                   at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)[:1.7.0_09]

                   at javax.security.auth.login.LoginContext$4.run(LoginContext.java:698)[:1.7.0_09]

                   at javax.security.auth.login.LoginContext$4.run(LoginContext.java:696)[:1.7.0_09]

                   at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_09]

                   at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:695)[:1.7.0_09]

                   at javax.security.auth.login.LoginContext.login(LoginContext.java:594)[:1.7.0_09]

                   at org.apache.karaf.management.JaasAuthenticator.authenticate(JaasAuthenticator.java:78)[16:org.apache.karaf.management.server:2.2.5.fuse-70-097]

                   ... 17 more

              21:35:13,909 | DEBUG | n(4)-192.168.0.4 | misc                             |  -  -  | RMI TCP Connection(4)-192.168.0.4: getting output stream

              21:35:13,923 | DEBUG | emqweb/index.jsp | misc                             |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: getting input stream

              21:35:13,923 | DEBUG | emqweb/index.jsp | loader                           |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: name = "java.lang.SecurityException", codebase = "", defaultLoader = org.apache.activemq.activemq-web-console

              21:35:13,924 | DEBUG | emqweb/index.jsp | loader                           |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: class "java.lang.SecurityException" found via defaultLoader, defined by null

              21:35:13,924 | DEBUG | emqweb/index.jsp | loader                           |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: name = "java.lang.RuntimeException", codebase = "", defaultLoader = org.apache.activemq.activemq-web-console

              21:35:13,925 | DEBUG | emqweb/index.jsp | loader                           |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: class "java.lang.RuntimeException" found via defaultLoader, defined by null

              21:35:13,925 | DEBUG | emqweb/index.jsp | loader                           |  -  -  | qtp18143814-129 - /activemqweb/index.jsp: name = "java.lang.Exception", codebase = "", defaultLoader = org.apache.activemq.activemq-web-console

              • 4. Re: Can't log in to the Active MQ Web Console on ESB that is in Fabric
                Jason Sherman Newbie

                Hi,

                 

                I have been able to recreate and resolve the behavior you have reported.  In the 7.0.2 release the containers are using a Fabric JAAS Realm which is based on the ZookeeperLoginModule.  The default user name and password credentials are admin/admin.  This needs to be set in the etc/system.properties file as follows for the webconsole:

                 

                webconsole.jmx.user=admin

                webconsole.jmx.password=admin

                 

                Additionally you may need to set the following properties if you also secure access to the broker:

                 

                webconsole.jms.user=user

                webconsole.jms.password=pass

                 

                This information is documented in the Configuring JAAS Security section of the Fuse ESB Enterprise documentation .

                 

                http://fusesource.com/docs/esbent/7.0/esb_runtime/ESBRuntimeSecurityConfig-AlternativeRealms.html

                • 5. Re: Can't log in to the Active MQ Web Console on ESB that is in Fabric
                  Milan Milas Newbie

                  Thanks for help, I have spent so much time with this.

                  This evening switched to java 1.6 from 1.7 in hope this will help.

                   

                  The only thing that needed to be set was as you suggested:

                  system.properties

                  #

                  1. Activemq Webconsole configuration

                  #

                  webconsole.jmx.user=admin

                  webconsole.jmx.password=admin