legacy-knowledge-base
公開されました Sep. 10, 2025

実行時エラー「モジュールを解決できませんでした: _ 未解決の要件: 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

learn-legacy-article-disclaimer-text

問題

  • 開発したモジュールのデプロイ中に、実行時に以下のエラーがスローされます。
    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

解決策

  • 報告された実行時エラーは、これが開発されたモジュールの構成の問題であることを示しています。
  • これを修正するには、プラグインをビルドするときに、 "com.liferay.portal.kernel" 依存関係のバージョンを、作業したい Liferay バンドルの実際のバージョンに引き上げる必要があります。
  • 実際のバージョンを確認するには、 <GLOBAL_LIB_PATH> に移動して portal-kernel.jar を開きます。 次に、META-INF/MANIFEST.MF に移動します。 バージョン情報が含まれています。
  • 完全なリファレンスについては、この記事 Finding Artifactsを参照してください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base