Legacy Knowledge Base
公開されました Jun. 30, 2025

Eclipse / Liferay IDE: SpringポートレットのJNDI接続作成時に "Failed to read schema document" URLが表示される

Written By

Michael Tran

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.

問題

  • Springを使用してJNDI接続を作成する際、Eclipse / Liferay IDEユーザーは以下のエラーに遭遇する可能性があります:
    • "Failed to read schema document 'http://www.liferay.com/schema/lrjee/liferay-jee.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>

環境

  • Liferay DXP 7.4

解像度

  • XSD ファイルが URL に対して実際に利用できないため、IDE は URL をそのまま解決できませんでした。
  • このエラーは、IDEを次のように設定することで解決できます:
    1. Preferences > XML > XML Catalogに移動し、Addをクリックする。
    2. Location に、ワークスペースからの相対パスで liferay-jee.xsd ファイルへのパスを入力します。 XSDファイルはローカルファイルシステム上にある必要がある。
    3. キーの種類」で「スキーマの場所」を選択
    4. キー」に「http://www.liferay.com/schema/lrjee/liferay-jee.xsd」と入力する。
    5. これを保存すると、EclipseはXSDを正しく解決できるようになり、Eclipseでマークされたエラーは消えます。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base