Legacy Knowledge Base
Published Sep. 10, 2025

Runtime error "Could not resolve module: _ Unresolved requirement: Import-Package com.liferay.portal.kernel.util; version="

Written By

Thanga Meena

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • The below error is thrown at runtime while deploying the developed module.
    org.osgi.framework.BundleException: Could not resolve module: com.test.java.service [1103]_ Unresolved requirement: Import-Package: com.liferay.portal.kernel.util; version="[9.13.0,10.0.0)"_ [Sanitized]
    at org.eclipse.osgi.container.Module.start(Module.java:444)
    atorg.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
    at

Environment

  • Liferay DXP 7.2

Resolution

  • The reported runtime error shows that this is the configuration issue in the developed module.
  • To fix this, when building the plugin, the version of "com.liferay.portal.kernel" dependency must be raised to the actual version of the Liferay bundle in which you want to work on.
  • To know about the actual version, navigate to <GLOBAL_LIB_PATH> and open the portal-kernel.jar. Then navigate to META-INF/MANIFEST.MF. It contains version info.
  • For a complete reference, refer to this article Finding Artifacts

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base