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

DXP and Commerce license load order can cause a "Failed to verify license" in PortalLicenseEnterpriseAppGateKeeper

    Details

      Description

      Steps to Reproduce:

      1. Download a 7.3 DXP bundle with Licensing
      2. Deploy a DXP and Commerce licenses to LIFERAY_HOME/deploy/, and rename them to set the load order
        • DXP license name: zdxp.xml
        • Commerce license name: acommerce.xml
      3. Start DXP

      Expected Result:
      Regardless of file name, Commerce and DXP licenses activate without issue.

      Actual Result:
      If the DXP license file name comes later in the alphabet (is read second?), WARN is thrown:

       WARN  [fileinstall-directory-watcher][PortalLicenseEnterpriseAppGateKeeper:508] Failed to verify license for 9a473157-06a6-44b6-b017-a360ffaf5f38: Unable to find a valid
      Liferay DXP license
      

      This issue will not occur if the file names are changed in Step #2 above to:

      • DXP license name: adxp.xml
      • Commerce license name: zcommerce.xml

      The load order is not clear from the console output:

      2020-09-17 23:10:09.362 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:271] Processing acommerce.xml
      2020-09-17 23:10:09.364 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:271] Processing zdxp.xml
      2020-09-17 23:10:10.631 INFO  [main][SystemCheckOSGiCommands:59] System check is enabled. You can run a system check with the command "system:check" in Gogo shell.
      17-Sep-2020 23:10:10.674 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [40833] milliseconds
      2020-09-17 23:10:20.036 WARN  [fileinstall-directory-watcher][PortalLicenseEnterpriseAppGateKeeper:508] Failed to verify license for 9a473157-06a6-44b6-b017-a360ffaf5f38: Unable to find a valid
      Liferay DXP license
      2020-09-17 23:10:20.036 INFO  [fileinstall-directory-watcher][LicenseManager:?] Liferay Commerce Subscription Development license validation passed
      2020-09-17 23:10:20.036 INFO  [fileinstall-directory-watcher][LicenseManager:?] License registered for Liferay Commerce Subscription Development
      
      2020-09-17 23:18:20.528 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:271] Processing zcommerce.xml
      2020-09-17 23:18:20.530 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:271] Processing adxp.xml
      2020-09-17 23:18:20.926 INFO  [fileinstall-directory-watcher][BaseAutoDeployListener:50] Themes for /opt/dev/projects/github/dist-backup/liferay-dxp-7.3.10-ga1/tomcat-9.0.37/temp/20200917231820478HGUUBWRA/speedwell-theme.war copied successfully
      2020-09-17 23:18:21.111 INFO  [main][SystemCheckOSGiCommands:59] System check is enabled. You can run a system check with the command "system:check" in Gogo shell.
      17-Sep-2020 23:18:21.155 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [38630] milliseconds
      2020-09-17 23:18:31.534 INFO  [fileinstall-directory-watcher][LicenseManager:?] Portal Development license validation passed
      2020-09-17 23:18:31.534 INFO  [fileinstall-directory-watcher][LicenseManager:?] License registered for Portal Development
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              victor.ware Victor Ware
              Reporter:
              victor.ware Victor Ware
              Participants of an Issue:
              Recent user:
              Walter Shao
              Engineering Assignee:
              Dante Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                30 weeks ago

                  Packages

                  Version Package
                  7.1.10 DXP FP21
                  7.1.X
                  7.2.X
                  7.3.6 CE GA7
                  7.3.X
                  Master