Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 94991 invoked from network); 6 Jan 2009 00:12:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jan 2009 00:12:53 -0000 Received: (qmail 34248 invoked by uid 500); 6 Jan 2009 00:12:52 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 34225 invoked by uid 500); 6 Jan 2009 00:12:52 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 34213 invoked by uid 99); 6 Jan 2009 00:12:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 16:12:52 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2009 00:12:41 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LJzYS-00066j-5z for users@activemq.apache.org; Mon, 05 Jan 2009 16:12:20 -0800 Message-ID: <21301556.post@talk.nabble.com> Date: Mon, 5 Jan 2009 16:12:20 -0800 (PST) From: Shahzad Bhatti To: users@activemq.apache.org Subject: Re: NPE for ${requestContext.brokerQuery.brokerAdmin.brokerName} In-Reply-To: <21298924.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: bhatti@plexobject.com References: <21156924.post@talk.nabble.com> <36e91d9d0812250106q71618c6fw4c058e61207dd60e@mail.gmail.com> <21298924.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I made some progress and I can see the first page index.jsp shows up properly, but when I try to add queue it fails, here is my webapps/admin/WEB-INF/webconsole-embedded.xml credentials.properties When I try to create queue or topic, I get HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: No brokerAdmin on the injected brokerFacade: org.apache.activemq.web.SingletonBrokerFacade@8c858a org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) javax.servlet.http.HttpServlet.service(HttpServlet.java:627) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:43) org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81) com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) root cause java.lang.IllegalArgumentException: No brokerAdmin on the injected brokerFacade: org.apache.activemq.web.SingletonBrokerFacade@8c858a org.apache.activemq.web.DestinationFacade.getBrokerAdmin(DestinationFacade.java:70) org.apache.activemq.web.DestinationFacade.addDestination(DestinationFacade.java:56) org.apache.activemq.web.controller.CreateDestination.handleRequest(CreateDestination.java:38) org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) javax.servlet.http.HttpServlet.service(HttpServlet.java:627) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:43) org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81) com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs. Apache Tomcat/5.5.27 How do I specify brokerAdmin? Shahzad Bhatti wrote: > > Sorry, for the late reply but I have both of those files in WEB-INF and as > I mentioned I copied all files from admin's WEB-INF except activemq.xml, > which I simplified with minimum configuration. Any other ideas? Thanks. > > > > > Dejan Bosanac wrote: >> >> Hi, >> >> as far as I can see from your configuration, you're missing >> dispatcher-servlet.xml and webconsole-embedded.xml for starters. Take a >> look >> at webapps/admin/WEB-INF/ folder of the ActiveMQ distribution for >> examples. >> >> Cheers >> -- >> Dejan Bosanac >> >> Open Source Integration - http://fusesource.com/ >> ActiveMQ in Action - http://www.manning.com/snyder/ >> Blog - http://www.nighttale.net >> >> >> On Wed, Dec 24, 2008 at 7:14 PM, Shahzad Bhatti >> wrote: >> >>> >>> I am trying to setup embedded ActiveMQ inside Tomcat. It is largely >>> based >>> on >>> admin webapp included in the distribution. However, when the server >>> starts >>> up, I see >>> >>> type Exception report >>> >>> message >>> >>> description The server encountered an internal error () that prevented >>> it >>> from fulfilling this request. >>> >>> exception >>> >>> org.apache.jasper.JasperException: Exception in JSP: /index.jsp:39 >>> >>> 36: >>> 37: >>> 38: >>> 39: >>> >>> 40: >>> 41: >>> 42: >>> >>> >>> Stacktrace: >>> >>> >>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451) >>> >>> >>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) >>> >>> >>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) >>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>> >>> >>> org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) >>> >>> >>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >>> >>> org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:43) >>> >>> >>> org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81) >>> >>> >>> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) >>> >>> >>> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) >>> >>> root cause >>> >>> java.lang.NullPointerException >>> >>> >>> org.apache.activemq.web.filter.ApplicationContextFilter$2.get(ApplicationContextFilter.java:157) >>> org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:218) >>> >>> org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145) >>> >>> >>> org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263) >>> >>> >>> org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190) >>> >>> >>> org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:924) >>> org.apache.jsp.index_jsp._jspService(index_jsp.java:77) >>> >>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>> >>> >>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) >>> >>> >>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) >>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) >>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>> >>> >>> org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) >>> >>> >>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) >>> >>> org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:43) >>> >>> >>> org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81) >>> >>> >>> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) >>> >>> >>> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) >>> >>> >>> >>> >>> My activemq.xml looks like >>> >> xmlns="http://www.springframework.org/schema/beans" >>> xmlns:amq="http://activemq.apache.org/schema/core" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://www.springframework.org/schema/beans >>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd >>> http://activemq.apache.org/schema/core >>> http://activemq.apache.org/schema/core/activemq-core.xsd >>> http://activemq.apache.org/camel/schema/spring >>> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd"> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> And web.xml looks like >>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >>> version="2.4"> >>> >>> Apache ActiveMQ Web Console >>> ActiveMQ Console >>> >>> >>> >>> org.apache.activemq.brokerURL >>> /WEB-INF/activemq.xml >>> The URL of the Message Broker to connect >>> to >>> >>> >>> >>> >>> >>> org.apache.activemq.embeddedBroker >>> true >>> Whether we should include an embedded broker or >>> not >>> >>> >>> >>> >>> >>> >>> org.apache.activemq.web.SpringBrokerContextListener >>> >>> >>> >>> sitemesh >>> >>> >>> com.opensymphony.module.sitemesh.filter.PageFilter >>> >>> >>> >>> sitemesh >>> /* >>> >>> >>> >>> >>> >>> >>> spring >>> >>> >>> org.apache.activemq.web.filter.ApplicationContextFilter >>> >>> >>> >>> spring >>> /* >>> >>> >>> >>> >>> >>> AjaxServlet >>> org.apache.activemq.web.AjaxServlet >>> 1 >>> >>> >>> AjaxServlet >>> /ajax/* >>> >>> >>> >>> SendServlet >>> org.apache.activemq.web.MessageServlet >>> 1 >>> >>> >>> SendServlet >>> /send/* >>> >>> >>> >>> >>> QueueBrowseServlet >>> >>> org.apache.activemq.web.QueueBrowseServlet >>> >>> >>> QueueBrowseServlet >>> /queueBrowse/* >>> >>> >>> >>> >>> session >>> org.apache.activemq.web.SessionFilter >>> >>> >>> >>> spring-rq >>> >>> >>> org.springframework.web.filter.RequestContextFilter >>> >>> >>> >>> session >>> /* >>> >>> >>> spring-rq >>> /* >>> >>> >>> >>> dispatcher >>> >>> >>> org.springframework.web.servlet.DispatcherServlet >>> 2 >>> >>> >>> >>> dispatcher >>> *.action >>> >>> >>> >>> index.html >>> index.jsp >>> >>> >>> >>> >>> *.jsp >>> /WEB-INF/jspf/headertags.jspf >>> >>> >>> >>> >>> >>> >>> How do I specify admin URL. Any idea how to fix this error? Thanks. >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/NPE-for-%24%7BrequestContext.brokerQuery.brokerAdmin.brokerName%7D-tp21156924p21156924.html >>> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >>> >>> >> >> >> ----- >> Dejan Bosanac >> >> >> http://www.ttmsolutions.com - get a free ActiveMQ user guide >> >> ActiveMQ in Action - http://www.manning.com/snyder/ >> Scripting in Java - http://www.scriptinginjava.net >> > > -- View this message in context: http://www.nabble.com/NPE-for-%24%7BrequestContext.brokerQuery.brokerAdmin.brokerName%7D-tp21156924p21301556.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Name${requestContext.brokerQuery.brokerAdmin.brokerName}
ID