Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1450

Uncaught exceptions in BridgeImpl.destroy() when re-deploying WARs

    Details

      Description

      Steps to reproduce:

      1. Set the following properties in portal-ext.properties

      hot.undeploy.enabled=true
      hot.undeploy.interval=250
      hot.undeploy.on.redeploy=true
      

      2. Copy the jsf2-portlet WAR to the /deploy folder

      3. After the portlet deploys, shut down Tomcat

      4. Restart Tomcat

      5. Repeat Step#2

      If the bug still exists, then a stacktrace similar to the following will appear in the Tomcat log:

      com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for jsf2-portlet
              at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
              at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:112)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:111)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:188)
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:40)
              at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:101)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:61)
              at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:53)
              at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
              at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
              at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
              at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1383)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
              at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1385)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1649)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1658)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1638)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.NoClassDefFoundError: com/liferay/faces/bridge/scope/BridgeRequestScopeManagerImpl
              at com.liferay.faces.bridge.scope.BridgeRequestScopeManagerFactoryImpl.getBridgeRequestScopeManager(BridgeRequestScopeManagerFactoryImpl.java:30)
              at com.liferay.faces.bridge.BridgeImpl.destroy(BridgeImpl.java:56)
              at javax.portlet.faces.GenericFacesPortlet.destroy(GenericFacesPortlet.java:73)
              at com.liferay.portlet.InvokerPortletImpl.destroy(InvokerPortletImpl.java:195)
              at com.liferay.portlet.PortletInstanceFactoryImpl.clear(PortletInstanceFactoryImpl.java:63)
              at com.liferay.portlet.PortletInstanceFactoryImpl.clear(PortletInstanceFactoryImpl.java:45)
              at com.liferay.portlet.PortletInstanceFactoryUtil.clear(PortletInstanceFactoryUtil.java:29)
              at com.liferay.portal.service.impl.PortletLocalServiceImpl.initWAR(PortletLocalServiceImpl.java:691)
              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 com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:86)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
              at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:93)
              at $Proxy55.initWAR(Unknown Source)
              at com.liferay.portal.service.PortletLocalServiceUtil.initWAR(PortletLocalServiceUtil.java:390)
              at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:254)
              at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:109)
              ... 25 more
      

        Attachments

          Activity

            People

            Assignee:
            neil.griffin Neil Griffin
            Reporter:
            neil.griffin Neil Griffin
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                liferay-faces-2.1.1-ga2
                liferay-faces-3.0.1-legacy-ga2
                liferay-faces-3.0.1-ga2
                liferay-faces-3.1.1-ga2
                liferay-faces-3.2.4-ga5