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

Commerce modules do not resolve on DXP using release packaging

    Details

      Description

      Steps to Reproduce (create a release packaging of DXP with only release LPKG)

      1. ant setup-profile-dxp
      2. ant all
      3. cd liferay-portal/modules/
      4. ant build-app-lpkg-release -Dliferay.home=YOUR_LIFERAY_HOME_DIR
      5. Navigate to YOUR_LIFERAY_HOME_DIR/osgi
      6. Delete directories (note the current contents of osgi/modules before deleting)
        • osgi/modules
        • osgi/static
        • osgi/war
        • osgi/portal
      7. Start tomcat

      Expected Result:
      DXP bundle starts without issue with release LPKG packaging

      Actual Result:
      Commerce modules cannot fully start due to missing dependencies

      2021-02-04 19:45:21.574 ERROR [Framework Event Dispatcher: Equinox Container: 6c7c27a1-f2e9-41ae-9fce-1cb49695d2bf][Framework:93] FrameworkEvent ERROR
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.commerce.account.service [963]_  Unresolved requirement: Import-Package: com.liferay.account.model; version="[2.0.0,3.0.0)"_ [Sanitized]
              at org.eclipse.osgi.container.Module.start(Module.java:444)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
      2021-02-04 19:45:21.670 ERROR [Framework Event Dispatcher: Equinox Container: 6c7c27a1-f2e9-41ae-9fce-1cb49695d2bf][Framework:93] FrameworkEvent ERROR
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.commerce.service [1034]_  Unresolved requirement: Import-Package: com.liferay.account.model; version="[2.0.0,3.0.0)"_ [Sanitized]
              at org.eclipse.osgi.container.Module.start(Module.java:444)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
      2021-02-04 19:45:21.695 ERROR [Framework Event Dispatcher: Equinox Container: 6c7c27a1-f2e9-41ae-9fce-1cb49695d2bf][Framework:93] FrameworkEvent ERROR
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.headless.commerce.admin.account.impl [1055]_  Unresolved requirement: Import-Package: com.liferay.account.model; version="[2.0.0,3.0.0)"_ [Sanitized]
              at org.eclipse.osgi.container.Module.start(Module.java:444)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
      2021-02-04 19:45:22.944 INFO  [main][ModuleFrameworkImpl:1968] Started dynamic bundles
      2021-02-04 19:45:22.945 INFO  [main][ModuleFrameworkImpl:1975] Starting web bundles
      2021-02-04 19:45:24.493 ERROR [Framework Event Dispatcher: Equinox Container: 6c7c27a1-f2e9-41ae-9fce-1cb49695d2bf][Framework:93] FrameworkEvent ERROR
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.commerce.account.admin.web [960]_  Unresolved requirement: Import-Package: com.liferay.account.model; version="[2.0.0,3.0.0)"_ [Sanitized]
              at org.eclipse.osgi.container.Module.start(Module.java:444)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
      2021-02-04 19:45:24.498 ERROR [Framework Event Dispatcher: Equinox Container: 6c7c27a1-f2e9-41ae-9fce-1cb49695d2bf][Framework:93] FrameworkEvent ERROR
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.commerce.account.web [964]_  Unresolved requirement: Import-Package: com.liferay.account.model; version="[2.0.0,3.0.0)"_ [Sanitized]
              at org.eclipse.osgi.container.Module.start(Module.java:444)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
              at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
              at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
              at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
      

      Based on automation results, this looks to be caused by LPS-125701. The solution might be just to add Accounts to the release packaging since Commerce now depends on it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              patricia.perez Patricia Perez
              Reporter:
              victor.ware Victor Ware
              Participants of an Issue:
              Recent user:
              Tomáš Polešovský
              Engineering Assignee:
              Drew Brokke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  Master