legacy-knowledge-base
公開されました Jun. 30, 2025

U98 のデプロイ時に "Driver org.mariadb.jdbc.Driver claims to not accept jdbcUrl" というエラーが発生しました。

written-by

Rafael Regner

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 service deployment DXP 7.4 U98 を設定すると失敗します。
  • Liferayサービスのログを見ると、次のようなエラーが確認できます:
    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Driver org.mariadb.jdbc.Driver claims to not accept jdbcUrl, jdbc:mysql://database--route/lportal?characterEncoding=UTF-8&dontTrackOpenResources=true&holdResultsOpenOverStatementClose=true&serverTimezone=GMT&useFastDateParsing=false&useUnicode=true

環境

  • Liferay Experience Cloudセルフマネージド(LXC SM)

解像度

  • U98 で、MariaDB JDBC Driver が LPS-196231経由で 3.2.0 に更新されました。
  • この問題を解決するには、Liferayサービスに次の環境変数を追加する必要があります:
    • キー
      LIFERAY_JDBC_PERIOD_DEFAULT_PERIOD_URL
    • jdbc:mysql://database--route/lportal?characterEncoding=UTF-8&dontTrackOpenResources=true&holdResultsOpenOverStatementClose=true&serverTimezone=GMT&useFastDateParsing=false&useUnicode=true&permitMysqlScheme&sslMode=trust
  • または、 portal-ext.propertiesjdbc.default.url プロパティをそれぞれの値で変更します。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base