JBoss Active MQ throws javax.naming.NameNotFoundException: karaf-root at startup.

Solution Unverified - Updated -

Issue

  • While starting JBoss Active MQ with default setting the following exception is encountered as soon as the "http://localhost:8181/activemqweb/index.jsp" is accessed.
14:32:36,916 | WARN  | qtp187514477-408 | ServletHandler                   | 90 - org.eclipse.jetty.util - 7.6.7.v20120910 | /activemqweb/index.jsp
javax.el.ELException: java.lang.RuntimeException: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: karaf-root
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:298)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at com.sun.el.parser.AstValue.getValue(AstValue.java:138)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:51)[file:/J:/data/tmp/.paxweb6623112601260768650/activemqweb/:]
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[95:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]
    at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:132)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:127)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at org.ops4j.pax.web.jsp.JspServletWrapper.service(JspServletWrapper.java:124)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:102)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:193)[100:org.ops4j.pax.web.pax-web-runtime:1.1.11]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[98:org.ops4j.pax.web.pax-web-jetty:1.1.11]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521)[82:org.eclipse.jetty.security:7.6.7.v20120910]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[98:org.ops4j.pax.web.pax-web-jetty:1.1.11]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)[80:org.eclipse.jetty.servlet:7.6.7.v20120910]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)[98:org.ops4j.pax.web.pax-web-jetty:1.1.11]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.Server.handle(Server.java:363)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)[79:org.eclipse.jetty.http:7.6.7.v20120910]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[79:org.eclipse.jetty.http:7.6.7.v20120910]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[84:org.eclipse.jetty.server:7.6.7.v20120910]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)[81:org.eclipse.jetty.io:7.6.7.v20120910]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)[81:org.eclipse.jetty.io:7.6.7.v20120910]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[90:org.eclipse.jetty.util:7.6.7.v20120910]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[90:org.eclipse.jetty.util:7.6.7.v20120910]
    at java.lang.Thread.run(Thread.java:662)[:1.6.0_34]
Caused by: java.lang.RuntimeException: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: karaf-root
    at org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:165)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at org.apache.activemq.web.RemoteJMXBrokerFacade.getMBeanServerConnection(RemoteJMXBrokerFacade.java:114)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerAdmin(RemoteJMXBrokerFacade.java:88)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerName(RemoteJMXBrokerFacade.java:101)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_34]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_34]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_34]
    at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_34]
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)[228:org.ops4j.pax.web.pax-web-jsp:1.1.11]
    ... 54 more
Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: karaf-root
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
    at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)[:1.6.0_34]
    at org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:146)[242:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
    ... 62 more
Caused by: javax.naming.NameNotFoundException: karaf-root
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:99)[:1.6.0_34]
    at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)[:1.6.0_34]
    at javax.naming.InitialContext.lookup(InitialContext.java:392)[:1.6.0_34]
    at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
    at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:255)
    ... 64 more

Environment

  • JBoss Fuse
    • 6.0
  • JBoss A-MQ
    • 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content