javax.naming.NameNotFoundException: env/BeanManager -- service jboss.naming.context.java.module.ROOT.ROOT.env.BeanManager 16:12:34,742 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97) 16:12:34,742 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)

Liferay Issues | Sri Hanuman | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    1. start server 2. deploy demo jsf2-cdi-portlet.war, everything is OK 3. shutdown server 4. start server 5. jsf2-cdi-portlet.war is deployed before the root.war, BeanManager is found through jndi 6. LR finishes deploy, picks up jsf2-cdi-portlet.war, BeanManager is not found, NamingException is thrown Solution is to put jboss-all.xml into META-INF dir, to ensure that the war is deployed after LR. [Edit by Neil Griffin, August 31, 2013] The following stacktrace will appear when this issue occurs: {code} 16:12:34,741 INFO [stdout] (MSC service thread 1-11) 16:12:34,739 ERROR [MSC service thread 1-11][CDIContextListener:66] javax.naming.NameNotFoundException: env/BeanManager -- service jboss.naming.context.java.module.ROOT.ROOT.env.BeanManager 16:12:34,742 INFO [stdout] (MSC service thread 1-11) javax.naming.NameNotFoundException: env/BeanManager -- service jboss.naming.context.java.module.ROOT.ROOT.env.BeanManager 16:12:34,742 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97) 16:12:34,742 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178) 16:12:34,743 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:123) 16:12:34,743 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214) 16:12:34,743 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.security.pacl.jndi.SchemeAwareContextWrapper.lookup(SchemeAwareContextWrapper.java:200) 16:12:34,743 INFO [stdout] (MSC service thread 1-11) at javax.naming.InitialContext.lookup(InitialContext.java:392) 16:12:34,744 INFO [stdout] (MSC service thread 1-11) at com.liferay.cdi.portlet.bridge.CDIContextListener.contextInitialized(CDIContextListener.java:61) 16:12:34,744 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.kernel.servlet.SecurePluginContextListener.instantiatingListener(SecurePluginContextListener.java:347) 16:12:34,744 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.kernel.servlet.SecurePluginContextListener.instantiatingListeners(SecurePluginContextListener.java:163) 16:12:34,745 INFO [stdout] (MSC service thread 1-11) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:12:34,745 INFO [stdout] (MSC service thread 1-11) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 16:12:34,745 INFO [stdout] (MSC service thread 1-11) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 16:12:34,745 INFO [stdout] (MSC service thread 1-11) at java.lang.reflect.Method.invoke(Method.java:597) 16:12:34,746 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.deploy.hot.ServletContextListenerHotDeployListener.doInvokeDeploy(ServletContextListenerHotDeployListener.java:73) 16:12:34,746 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.deploy.hot.ServletContextListenerHotDeployListener.invokeDeploy(ServletContextListenerHotDeployListener.java:37) 16:12:34,746 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:195) 16:12:34,747 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:97) 16:12:34,747 INFO [stdout] (MSC service thread 1-11) at sun.reflect.GeneratedMethodAccessor499.invoke(Unknown Source) 16:12:34,747 INFO [stdout] (MSC service thread 1-11) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 16:12:34,747 INFO [stdout] (MSC service thread 1-11) at java.lang.reflect.Method.invoke(Method.java:597) 16:12:34,748 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88) 16:12:34,748 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56) 16:12:34,748 INFO [stdout] (MSC service thread 1-11) at com.sun.proxy.$Proxy87.fireDeployEvent(Unknown Source) 16:12:34,748 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27) 16:12:34,749 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:164) 16:12:34,749 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:154) 16:12:34,749 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44) 16:12:34,749 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.kernel.util.PortalLifecycleUtil.flushInits(PortalLifecycleUtil.java:48) 16:12:34,750 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.servlet.MainServlet.initPlugins(MainServlet.java:847) 16:12:34,750 INFO [stdout] (MSC service thread 1-11) at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:366) 16:12:34,750 INFO [stdout] (MSC service thread 1-11) at javax.servlet.GenericServlet.init(GenericServlet.java:242) 16:12:34,750 INFO [stdout] (MSC service thread 1-11) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) 16:12:34,751 INFO [stdout] (MSC service thread 1-11) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) 16:12:34,751 INFO [stdout] (MSC service thread 1-11) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) 16:12:34,752 INFO [stdout] (MSC service thread 1-11) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) 16:12:34,752 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) 16:12:34,753 INFO [stdout] (MSC service thread 1-11) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) 16:12:34,753 INFO [stdout] (MSC service thread 1-11) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) 16:12:34,753 INFO [stdout] (MSC service thread 1-11) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 16:12:34,754 INFO [stdout] (MSC service thread 1-11) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 16:12:34,754 INFO [stdout] (MSC service thread 1-11) at java.lang.Thread.run(Thread.java:680) {code}

    Liferay Issues | 4 years ago | Sri Hanuman
    javax.naming.NameNotFoundException: env/BeanManager -- service jboss.naming.context.java.module.ROOT.ROOT.env.BeanManager 16:12:34,742 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97) 16:12:34,742 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
  2. 0

    Problem with primefaces monitorDownload - Forums | Liferay

    liferay.com | 1 year ago
    javax.naming.NameNotFoundException: env/BeanManager -- service jboss.naming.context.java.module.ROOT.ROOT.env.BeanManager
  3. 0

    Problem with primefaces monitorDownload - Forums

    liferay.com | 7 months ago
    javax.naming.NameNotFoundException: env/BeanManager -- service jboss.naming.context.java.module.ROOT.ROOT.env.BeanManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem with primefaces monitorDownload - Community Forums | Liferay

    liferay.com | 7 months ago
    javax.naming.NameNotFoundException: env/BeanManager -- service jboss.naming.context.java.module.ROOT.ROOT.env.BeanManager

  1. Andreas Häber 4 times, last 2 weeks ago
20 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.naming.NameNotFoundException

    env/BeanManager -- service jboss.naming.context.java.module.ROOT.ROOT.env.BeanManager 16:12:34,742 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97) 16:12:34,742 INFO [stdout] (MSC service thread 1-11) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)

    at org.jboss.as.naming.InitialContext.lookup()
  2. JBoss Application Server: Naming Subsystem
    NamingContext.lookup
    1. org.jboss.as.naming.InitialContext.lookup(InitialContext.java:123)
    2. org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)
    2 frames
  3. Liferay Portal PACL
    SchemeAwareContextWrapper.lookup
    1. com.liferay.portal.security.pacl.jndi.SchemeAwareContextWrapper.lookup(SchemeAwareContextWrapper.java:200)
    1 frame
  4. Java RT
    InitialContext.lookup
    1. javax.naming.InitialContext.lookup(InitialContext.java:392)
    1 frame