ナレッジベース
公開されました Sep. 10, 2025

JNDI接続を使用したLiferayのアップグレード

written-by

Adrienne Lao

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.

問題

  • データベースへのJNDI接続を使ってLiferay環境をアップグレードしようとすると、アップグレードに失敗してエラーが発生します。
  • 自動アップグレードポータルのプロパティ("upgrade.database.auto.run=true "と "schema.module.build.auto.upgrade=true")は、JNDIでは動作しません。

環境

  • DXP 7.4

解像度

  • ハイパーソニックがデータベースとして検出された場合、"upgrade.database.auto.run "がtrueに設定されているにもかかわらず常にfalseとみなされるのは、 LPS-161525からのリグレッションによるものです。
  • LPS-197082 のような長期的な修正が要求されています。 しかし、簡単な回避策があります。 portal-ext.propertiesファイルに以下の行を追加するだけです、
     jdbc.default.driverClassName=
  • この行に空白の値を設定することで、LiferayがHypersonicが使用中であることを誤って検知し、"upgrade.database.auto.run "を偽の値で上書きすることを防ぎます。 これにより、サーバー起動時にデータベースが期待通りにアップグレードされるようになります。

did-this-article-resolve-your-issue

ナレッジベース