Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-94297

Intermittent thread timing issue causes CDI bean portlets to not register properly

    Details

      Description

      Problem Background

      When a CDI bean portlet is deployed to $LIFERAY_HOME/deploy, the Liferay CDI BeanPortletExtension is activated by the CDI+OSGi integration feature in order to register portlets as OSGi services. However, it operates on a thread that is different than the legacy portlet WAR auto-deployer. The BeanPortletExtension is designed such that it must execute prior to the legacy portlet WAR auto-deployer. However, this is intermittently not the case because of thread execution timing.

      Steps to Reproduce

      • Set the Log level for com.liferay.portal.deploy.hot.PortletHotDeployListener to DEBUG
      • Copy the attached tck-V3RenderStateTests.war artifact to $LIFERAY_HOME/deploy

      Expected Results

      In the console log, you should see:

      PortletHotDeployListener [DEBUG] Detected bean portlet from /META-INF/MANIFEST.MF
      

      Actual Results

      Intermittently, the the console log will contain the following, which indicates that the WEB-INF/portlet.xml descriptor is about to be parsed by the PortletHotDeployListener, even though it shouldn't be since that is the sole responsibility of the CDI bean portlet extension:

      PortletHotDeployListener [DEBUG] Registering portlets for tck-V3RenderStateTests
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shuyang.zhou Shuyang Zhou
                Reporter:
                neil.griffin Neil Griffin
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  30 weeks, 3 days ago

                  Packages

                  Version Package
                  7.1.3 CE GA4
                  7.1.10 DXP FP11
                  7.1.X
                  Master