Could not resolve module error

Issue

  •  When trying to install commerce 2.2.0 on Liferay DXP 7.2 fix-pack-15, the could not resolve module error is appearing in the console.
  • Steps to reproduce:
    1. Install fix-pack-15 on Liferay DXP 7.2.
    2. Deploy Commerce license & Liferay Commerce Enterprise 2.2.0 - 7.2.x.lpkg.
    3.
    Start the bundle.
    4.
    After the start of the server, the following log will appear:
    The portal instance needs to be restarted to complete the installation of file:/E:/TestBundle/72FP12/liferay-dxp-7.2.10.5-sp5/osgi/marketplace/Liferay%20Commerce%20-%20API.lpkg
    5. Restart the server.
    Expected Result: There must be no error after the restart of the server.
    Actual Result: The following module errors are observed & the product portlet is missing from the commerce section.
    2022-06-17 09:07:45.365 ERROR [Framework Event Dispatcher: Equinox Container: e08a135f-3d17-4860-bdc1-db0de3012249][Framework:93] FrameworkEvent ERROR 
    org.osgi.framework.BundleException: Could not resolve module: com.liferay.commerce.price.list.web [325]_ Unresolved requirement: Import-Package: com.liferay.commerce.product.definitions.web.display.context; version="[1.2.0,2.0.0)"_ -> Export-Package: com.liferay.commerce.product.definitions.web.display.context; bundle-symbolic-name="com.liferay.commerce.product.definitions.web"; bundle-version="5.0.2"; version="1.2.0"; uses:="com.liferay.commerce.product.definitions.web.portlet.action,com.liferay.commerce.product.display.context.util,com.liferay.commerce.product.model,com.liferay.commerce.product.type,com.liferay.frontend.taglib.servlet.taglib,com.liferay.portal.kernel.dao.search,com.liferay.portal.kernel.exception,com.liferay.portal.kernel.portlet,javax.portlet,javax.servlet.http"_ com.liferay.commerce.product.definitions.web [330]_ Unresolved requirement: Import-Package: com.liferay.portal.kernel.portlet; version="[8.0.0,9.1.0)"_ Unresolved requirement: Import-Package: com.liferay.commerce.product.definitions.web.portlet.action; version="[1.1.0,2.0.0)"_ -> Export-Package: com.liferay.commerce.product.definitions.web.portlet.action; bundle-symbolic-name="com.liferay.commerce.product.definitions.web"; bundle-version="5.0.2"; version="1.1.0"; uses:="com.liferay.commerce.model,com.liferay.commerce.product.model,com.liferay.commerce.product.type,com.liferay.portal.kernel.exception,javax.portlet"_ [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)
    2022-06-17 09:07:45.382 ERROR [Framework Event Dispatcher: Equinox Container: e08a135f-3d17-4860-bdc1-db0de3012249][Framework:93] FrameworkEvent ERROR
    org.osgi.framework.BundleException: Could not resolve module: com.liferay.commerce.product.definitions.web [330]_ Unresolved requirement: Import-Package: com.liferay.portal.kernel.portlet; version="[8.0.0,9.1.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)

Environment

  • Liferay DXP 7.2
  • Commerce 2.2.0

Resolution

  • The observed behavior is a known issue.
  • If the hotfix is required for this issue, please create a support ticket requesting a hotfix by attaching patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to installation of the hotfix in the respective environment.
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0