activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neek <n...@nickfenwick.com>
Subject Re: Starting WebConsole .war in embedded Jetty and vm:// broker.. JNDI config?
Date Wed, 25 May 2011 08:46:39 GMT

Dejan Bosanac wrote:
> 
> if you're using jndi, you need to se connection factory and other params
> using jndi (see
> http://activemq.apache.org/web-console.html#WebConsole-ConfigureusingJNDI)
> 
> -Dwebconsole.jms.url=vm://myapp
> -Dwebconsole.type=properties
> 
> will work if you're using system properties to set your web console (
> http://activemq.apache.org/web-console.html#WebConsole-ConfigureusingSystemProperties
> )
> 

Thank you.  I didn't know if, because I used JNDI in my main web app, I
should try to force the webconsole to be configured via JNDI.  It seems I
should stick with the "properties" type.  So, while my main web app is using
jndi.properties to define the JMS connection settings, I shouldn't try to
use JNDI configuration at all with the web console.

It seems to start up OK now (great!) but then hits a NullPointerException
when I try to fetch http://myserver:8080/webconsole, looks like something in
index.jsp uses an EL expression to do something with a JMX bean that's
failing:

startup:

25-May-2011 15:38:29 org.eclipse.jetty.util.log.Slf4jLog info
INFO: Extract jar:file:/downloads/activemq-web-console-5.5.0.war!/ to
/tmp/jetty-0.0.0.0-8080-activemq-web-console-5.5.0.war-_webconsole-any-/webapp
25-May-2011 15:38:32 org.eclipse.jetty.util.log.Slf4jLog info
INFO: started
o.e.j.w.WebAppContext{/webconsole,file:/tmp/jetty-0.0.0.0-8080-activemq-web-console-5.5.0.war-_webconsole-any-/webapp/},/downloads/activemq-web-console-5.5.0.war
25-May-2011 15:38:33 org.eclipse.jetty.util.log.Slf4jLog info
INFO: Initializing Spring FrameworkServlet 'dispatcher'
25-May-2011 15:38:33 org.eclipse.jetty.util.log.Slf4jLog info
INFO: Started SelectChannelConnector@0.0.0.0:8080 STARTING

access /webconsole:

25-May-2011 15:40:00 org.eclipse.jetty.util.log.Slf4jLog warn
WARNING: /webconsole/
javax.el.ELException: java.lang.NullPointerException
        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:66)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        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:820)
        at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
[cut]
Caused by: java.lang.NullPointerException
        at
org.apache.activemq.web.config.AbstractConfiguration.makeJmxUrls(AbstractConfiguration.java:78)
        at
org.apache.activemq.web.config.SystemPropertiesConfiguration.getJmxUrls(SystemPropertiesConfiguration.java:54)
        at
org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:141)
        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:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)
        ... 57 more

I know very little about JMX, as well :(  I may dig into this later.  A
quick google didn't turn up any hints.

Nick

--
View this message in context: http://activemq.2283324.n4.nabble.com/Starting-WebConsole-war-in-embedded-Jetty-and-vm-broker-JNDI-config-tp3548843p3549191.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message