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

カスタマイズによるXercesのエラー

written-by

Phil Chapman

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 6.2でカスタマイズをデプロイした後、サーバーの再起動時にxerces関連のエラーが発生します。
  • モジュール展開後、ログにApache xercesのエラーが表示される。

Environment

  • Liferay 6.2、JBoss EAP 7.0

解決策

これは、 xercesImpl.jar の2つのバージョンが呼び出されたために発生します:

  • Liferay 6.2 は独自の xercesImpl.jar ファイルを使用します。
  • カスタマイズ/モジュールでは、JBossデプロイメントディスクリプターを介してxercesImpl.jarが呼び出されます。

Liferay が独自のバージョンを使用するように、JBoss xerces モジュールのインクルードをコメントアウトします。

  1. にナビゲートします:/liferay-home/jboss-eap-7.0/standalone/deployments/ROOT.war/WEB-INF に移動します。
  2. ファイル:jboss-deployment-structure.xmlを見つける。
  3. dependenciesタグから、以下をコメントアウトします:
    <module name="org.apache.xerces" />
  4. ファイルを保存する
  5. サーバーを再起動する

did-this-article-resolve-your-issue

legacy-knowledge-base