ActiveMQ
  1. ActiveMQ
  2. AMQ-1459

Active MQ web console not able to browse queues when JAAS security is enabled

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      RHEL4u5 jdk1.5.0_06

      Description

      I have configured ActiveMQ 5.0-20071008 and enabled JAAS authentication.
      I have left web console configuration as default and we are able to see all the queues but can't browse any queue thru web console.
      How do we send user name password to authenticate web console session and allow to browse the queue?

      Here is the error wehn we try to browse the queue.

      HTTP ERROR: 500
      Error creating bean with name 'queueBrowser' defined in ServletContext resource [/WEB-INF/webconsole-embedded.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.JMSException: User name or password is invalid.
      RequestURI=/admin/browse.jsp

      Caused by:
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queueBrowser' defined in ServletContext resource [/WEB-INF/webconsole-embedded.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.JMSException: User name or password is invalid.
      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.web.QueueBrowseQuery]: Constructor threw exception; nested exception is javax.jms.JMSException: User name or password is invalid.
      Caused by: javax.jms.JMSException: User name or password is invalid.
      at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
      at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1178)
      at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1262)
      at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:453)
      at org.apache.activemq.web.SessionPool.getConnection(SessionPool.java:44)
      at org.apache.activemq.web.SessionPool.createSession(SessionPool.java:98)
      at org.apache.activemq.web.SessionPool.borrowSession(SessionPool.java:81)
      at org.apache.activemq.web.QueueBrowseQuery.(QueueBrowseQuery.java:40)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:799)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:717)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:384)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:270)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
      at org.apache.activemq.web.filter.ApplicationContextFilter$2.get(ApplicationContextFilter.java:157)
      at javax.el.MapELResolver.getValue(MapELResolver.java:164)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:125)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
      at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1008)
      at org.apache.jsp.browse_jsp._jspService(org.apache.jsp.browse_jsp:61)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:63)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:46)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
      at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:295)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
      Caused by: java.lang.SecurityException: User name or password is invalid.
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:83)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
      Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:336)
      at java.util.Properties.getProperty(Properties.java:774)
      at org.apache.activemq.jaas.PropertiesLoginModule.login(PropertiesLoginModule.java:116)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)

      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      ... 11 more

      Caused by:
      org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.activemq.web.QueueBrowseQuery]: Constructor threw exception; nested exception is javax.jms.JMSException: User name or password is invalid.
      Caused by: javax.jms.JMSException: User name or password is invalid.
      at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
      at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1178)
      at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1262)
      at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:453)
      at org.apache.activemq.web.SessionPool.getConnection(SessionPool.java:44)
      at org.apache.activemq.web.SessionPool.createSession(SessionPool.java:98)
      at org.apache.activemq.web.SessionPool.borrowSession(SessionPool.java:81)
      at org.apache.activemq.web.QueueBrowseQuery.(QueueBrowseQuery.java:40)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:799)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:717)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:384)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:270)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
      at org.apache.activemq.web.filter.ApplicationContextFilter$2.get(ApplicationContextFilter.java:157)
      at javax.el.MapELResolver.getValue(MapELResolver.java:164)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:125)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
      at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1008)
      at org.apache.jsp.browse_jsp._jspService(org.apache.jsp.browse_jsp:61)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:63)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:46)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
      at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:295)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
      Caused by: java.lang.SecurityException: User name or password is invalid.
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:83)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
      Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:336)
      at java.util.Properties.getProperty(Properties.java:774)
      at org.apache.activemq.jaas.PropertiesLoginModule.login(PropertiesLoginModule.java:116)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)

      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      ... 11 more

      Caused by:
      javax.jms.JMSException: User name or password is invalid.
      at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
      at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1178)
      at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1262)
      at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:453)
      at org.apache.activemq.web.SessionPool.getConnection(SessionPool.java:44)
      at org.apache.activemq.web.SessionPool.createSession(SessionPool.java:98)
      at org.apache.activemq.web.SessionPool.borrowSession(SessionPool.java:81)
      at org.apache.activemq.web.QueueBrowseQuery.(QueueBrowseQuery.java:40)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:799)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:717)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:384)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:270)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
      at org.apache.activemq.web.filter.ApplicationContextFilter$2.get(ApplicationContextFilter.java:157)
      at javax.el.MapELResolver.getValue(MapELResolver.java:164)
      at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:125)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
      at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1008)
      at org.apache.jsp.browse_jsp._jspService(org.apache.jsp.browse_jsp:61)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
      at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:63)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:46)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
      at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:295)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
      Caused by: java.lang.SecurityException: User name or password is invalid.
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:83)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
      Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:336)
      at java.util.Properties.getProperty(Properties.java:774)
      at org.apache.activemq.jaas.PropertiesLoginModule.login(PropertiesLoginModule.java:116)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)

      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      ... 11 more

      Caused by:
      java.lang.SecurityException: User name or password is invalid.
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:83)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
      Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:336)
      at java.util.Properties.getProperty(Properties.java:774)
      at org.apache.activemq.jaas.PropertiesLoginModule.login(PropertiesLoginModule.java:116)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)

      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      ... 11 more

      Caused by:
      javax.security.auth.login.LoginException: java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:336)
      at java.util.Properties.getProperty(Properties.java:774)
      at org.apache.activemq.jaas.PropertiesLoginModule.login(PropertiesLoginModule.java:116)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)

      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
      at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:76)
      at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81)
      at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:91)
      at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:694)
      at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125)
      at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:319)
      at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:216)
      at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
      at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
      at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:232)
      at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
      at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)

      Powered by Jetty://

        Issue Links

          Activity

          Jeff Turner made changes -
          Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
          Gary Tully made changes -
          Fix Version/s 5.3.0 [ 11914 ]
          Fix Version/s 5.2.0 [ 11841 ]
          Dejan Bosanac made changes -
          Assignee Dejan Bosanac [ dejanb ]
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Hide
          Dejan Bosanac added a comment -

          This issue is fixed by patch for https://issues.apache.org/activemq/browse/AMQ-1237

          Please refer to http://activemq.apache.org/security.html#Security-SecurityandActiveMQComponents for details on workarounds for pre 5.3 releases.

          Show
          Dejan Bosanac added a comment - This issue is fixed by patch for https://issues.apache.org/activemq/browse/AMQ-1237 Please refer to http://activemq.apache.org/security.html#Security-SecurityandActiveMQComponents for details on workarounds for pre 5.3 releases.
          Rob Davies made changes -
          Fix Version/s 5.3.0 [ 11914 ]
          Dejan Bosanac made changes -
          Field Original Value New Value
          Link This issue duplicates AMQ-1237 [ AMQ-1237 ]
          Hide
          Adrian Co added a comment -

          So far the only way I know is to configure the userName and password in the jndi configuration of the admin console. e.g.

          <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
          <property name="brokerURL" value="vm://localhost"/>
          <property name="userName" value="foo"/>
          <property name="password" value="bar"/>
          </bean>

          HTH

          Show
          Adrian Co added a comment - So far the only way I know is to configure the userName and password in the jndi configuration of the admin console. e.g. <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="vm://localhost"/> <property name="userName" value="foo"/> <property name="password" value="bar"/> </bean> HTH
          Alpesh Patel created issue -

            People

            • Assignee:
              Dejan Bosanac
              Reporter:
              Alpesh Patel
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development