java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil

Liferay Issues | Jane Kim | 3 years ago
  1. 0

    Console displays errors when deploying the OpenSocial lpkg. Steps to reproduce: # Start server # Deploy OpenSocial lpkg Expected result: OpenSocial should be deployed without errors being thrown in console. Actual result: Console shows InvokerFilterHelper error. Console output: {code} 23:43:22,826 ERROR [localhost-startStop-3][InvokerFilterHelper:199] Unable to initialize filter com.liferay.opensocial.shindig.servlet.AuthenticationServletFilter javax.servlet.UnavailableException: Guice Injector not found! Make sure you registered org.apache.shindig.common.servlet.GuiceServletContextListener as a listener at org.apache.shindig.common.servlet.InjectedFilter.init(InjectedFilter.java:42) at com.liferay.opensocial.shindig.servlet.AuthenticationServletFilter.init(AuthenticationServletFilter.java:67) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.getFilter(InvokerFilterHelper.java:194) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.initFilter(InvokerFilterHelper.java:231) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.readLiferayFilterWebXML(InvokerFilterHelper.java:322) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doPortalInit(InvokerFilter.java:151) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.init(InvokerFilter.java:94) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4746) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5399) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1672) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 23:43:22,834 ERROR [localhost-startStop-3][InvokerFilterHelper:199] Unable to initialize filter com.liferay.opensocial.shindig.servlet.ShindigFilter javax.servlet.UnavailableException: Guice Injector not found! Make sure you registered org.apache.shindig.common.servlet.GuiceServletContextListener as a listener at org.apache.shindig.common.servlet.InjectedFilter.init(InjectedFilter.java:42) at com.liferay.opensocial.shindig.servlet.ShindigFilter.init(ShindigFilter.java:105) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.getFilter(InvokerFilterHelper.java:194) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.initFilter(InvokerFilterHelper.java:231) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterHelper.readLiferayFilterWebXML(InvokerFilterHelper.java:322) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doPortalInit(InvokerFilter.java:151) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:44) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:54) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.init(InvokerFilter.java:94) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4746) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5399) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1672) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {code}

    Liferay Issues | 3 years ago | Jane Kim
    java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil
  2. 0

    Each of the layout template plugins (1-2-1-columns-layouttpl, 1-3-1-columns-layouttpl, 1-3-2-columns-layouttpl, 2-1-2-columns-layouttpl, 3-2-3-columns-layouttpl) deploys with the following error: {code} 00:40:46,393 ERROR [PortletContextLoaderListener:111] java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:97) at com.liferay.portal.deploy.hot.SpringHotDeployListener.doInvokeDeploy(SpringHotDeployListener.java:83) at com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:41) at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:148) at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:79) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:25) at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:151) at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:141) at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:63) at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:55) at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52) at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:103) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {code} Otherwise, the plugins function normally.

    Liferay Issues | 4 years ago | Kevin Dean
    java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil
  3. 0

    How to backport a 6.1.1 jsf portlet to get it running on a 6.1.0 liferay portal?

    Stack Overflow | 4 years ago | abeing
    java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cannot deploy 6.1.0 portlet - Forums | Liferay

    liferay.com | 6 months ago
    java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil
  6. 0

    ClassNotFoundException UserImpl with @viewState - Forums | Liferay

    liferay.com | 1 year ago
    javax.faces.FacesException: java.lang.ClassNotFoundException: com.liferay.portal.model.impl.UserImpl
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. java.lang.ClassNotFoundException

    com.liferay.util.bean.PortletBeanLocatorUtil

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
    2 frames
  3. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:247)
    2 frames
  4. Liferay Portal Impl
    HotDeployImpl.fireDeployEvent
    1. com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:116)
    2. com.liferay.portal.deploy.hot.SpringHotDeployListener.doInvokeDeploy(SpringHotDeployListener.java:77)
    3. com.liferay.portal.deploy.hot.SpringHotDeployListener.invokeDeploy(SpringHotDeployListener.java:40)
    4. com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:188)
    5. com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:216)
    6. com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
    6 frames
  5. Liferay Portal Service
    PluginContextListener.contextInitialized
    1. com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
    2. com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:167)
    3. com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:151)
    4. com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
    5. com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:64)
    6. com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:56)
    7. com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
    8. com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:106)
    8 frames
  6. Glassfish Core
    HostConfig$DeployDirectory.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
    7. org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)
    8. org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621)
    8 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    6. java.lang.Thread.run(Thread.java:619)
    6 frames