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

カスタムデプロイメントエラー "Require-Capability: osgi.ee=JavaSE"

written-by

Daniel Carrillo Broeder

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
注:Liferay は、Liferay Experience Could オファリングの名称を次のように変更しました。 Liferay SaaS(旧 LXC) と Liferay PaaS(旧 LXC-SM)となりました。

問題

  • 以下のエラーにより、カスタム・モジュールをデプロイできません:
  • ERROR [fileinstall-directory-watcher][DirectoryWatcher:1141] Unable to start bundle: file:/opt/liferay/osgi/modules/com.liferay.custom.bundle.jar
    org.osgi.framework.BundleException: Could not resolve module: com.liferay.custom.bundle [1822]_ Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=12))"_

環境

  • Liferay DXP 7.0、7.1、7.2、7.3、7.4

解像度

  • このモジュールは、サポートされているJDKのバージョンが高くコンパイルされているため、OSGiでアクティブにすることはできません。
  • プロジェクトのbuild.gradleで、正しいJDKバージョンでコンパイルするか、ソース/ターゲットのコンパイル互換性を強制することができます:
  • subprojects {
    plugins.withType(JavaPlugin) {
    compileJava {
    sourceCompatibility = '1.8'
    targetCompatibility = '1.8'
    }
    }
    }

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base