4 Replies Latest reply on May 31, 2013 6:28 AM by worldofnic

    javax.naming.NameNotFoundException: karaf-root Exception

    stevenmrobinson

      JBoss A-MQ is installed on CentOS and configured for admin access as per the readme.

       

      However, when calling http://localhost:8181/activemqweb/index.jsp I get message "A server side exception occurred while processing this request, check the log for more information" on the web console and the following in the log;

       

      2013-04-17 22:12:02,814 | WARN  | qtp188207311-184 | ServletHandler                   | lipse.jetty.util.log.JavaUtilLog   70 | 75 - 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)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at com.sun.el.parser.AstValue.getValue(AstValue.java:138)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:51)[file:/usr/share/jboss-a-mq-6.0.0/data/tmp/.paxweb1094474484176177332/activemqweb/:]

                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[72:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]

                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)[72:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]

                at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:132)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at org.ops4j.pax.web.jsp.JspServletWrapper$2.call(JspServletWrapper.java:127)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at org.ops4j.pax.web.jsp.JspServletWrapper.service(JspServletWrapper.java:124)[128:org.ops4j.pax.web.pax-web-jsp:1.1.11]

                at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1329)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

                at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

                at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:45)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

                at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:102)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

                at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

                at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:193)[123:org.ops4j.pax.web.pax-web-runtime:1.1.11]

                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1300)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

                at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

                at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[124:org.ops4j.pax.web.pax-web-jetty:1.1.11]

                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[81: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)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[124:org.ops4j.pax.web.pax-web-jetty:1.1.11]

                at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)[83:org.eclipse.jetty.servlet:7.6.7.v20120910]

                at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:75)[124:org.ops4j.pax.web.pax-web-jetty:1.1.11]

                at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.eclipse.jetty.server.Server.handle(Server.java:363)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)[77:org.eclipse.jetty.http:7.6.7.v20120910]

                at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[77:org.eclipse.jetty.http:7.6.7.v20120910]

                at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[81:org.eclipse.jetty.server:7.6.7.v20120910]

                at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)[76:org.eclipse.jetty.io:7.6.7.v20120910]

                at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)[76:org.eclipse.jetty.io:7.6.7.v20120910]

                at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[75:org.eclipse.jetty.util:7.6.7.v20120910]

                at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[75:org.eclipse.jetty.util:7.6.7.v20120910]

                at java.lang.Thread.run(Thread.java:662)[:1.6.0_45]

      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)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at org.apache.activemq.web.RemoteJMXBrokerFacade.getMBeanServerConnection(RemoteJMXBrokerFacade.java:114)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerAdmin(RemoteJMXBrokerFacade.java:88)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at org.apache.activemq.web.RemoteJMXBrokerFacade.getBrokerName(RemoteJMXBrokerFacade.java:101)[133:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_45]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_45]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_45]

                at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_45]

                at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)[128: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_45]

                at org.apache.activemq.web.RemoteJMXBrokerFacade.createConnection(RemoteJMXBrokerFacade.java:146)[133: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_45]

                at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)[:1.6.0_45]

                at javax.naming.InitialContext.lookup(InitialContext.java:392)[:1.6.0_45]

                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

       

      I have used the exact same config on another VM (Ubuntu) and the web console works fine on that particular instance.

       

      Has anyone had a similar issue?