Legacy Knowledge Base
公開されました Jul. 2, 2025

DXP 7.1 FP3+適用後、外部データソースへの接続ができない。

Written By

Nathan Roberts

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.

7.1 FP10+では、この問題はなくなりました。

先日、Liferay DXP 7.1のコアインフラに LPS-85683 が実装され、DXP 7.1 Fix Pack 3を適用することで導入が可能になりました。 LPS-85683 LiferayのコアエンジニアがSpring Extenderをリファクタリングし、コアのパフォーマンスを向上させるという全体的な目標に向かって、その後の段階的な改善を可能にしたプロジェクトの詳細を説明しました。 これは、アプリケーションコンテキストを親(エクステンダのスプリングファイル)と子(サービスビルダーサービスのスプリングファイル)に分割することで実現しました。 この変更を行うことで、エクステンダーサービスをサービスビルダーサービスとは別に早く登録し、将来的には親アプリケーションコンテキストで未使用の機能の一部を無効にすることができます。

しかし同時に、LiferayのSpring Extender を使用してSpring Beanで追加された、 外部データソースに接続するカスタマイズモジュールが、Fix Pack 3適用後に動作しなくなることが特に発生しました。 まず、チュートリアル Service Builderと外部データベースの接続 を読み、セットアップの手順を確認してから続行する必要があります。

これはJNDI Bladeのサンプルで、 spring.xml を使って、別の外部データソース https://github.com/liferay/liferay-blade-samples/tree/7.1/gradle/apps/service-builder/jndi に接続する方法を示しています。

Note: Liferay DXP 7.1にのみ影響します。

解決策

修正済み

FP-3から始まる(FP-9まで):

  1. モジュールで、オーバーライド spring.xml を /../src/main/resources/META-INF/spring/ から /../src/main/resources/META-INF/spring/parentに移します。
  2. モジュールを再デプロイします。

先に述べたように、アプリケーションコンテキストが親(エクステンダのspringファイル)と子(サービスビルダーサービスのspringファイル)に分割されていたためです。

Did this article resolve your issue ?

Legacy Knowledge Base