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

WildFly/JBossバージョン22.0.0以降を使用している場合、モジュールのデプロイ時にSTARTED/STOPPED情報を含むINFOログトレースが表示されない。

written-by

Georgel Pop

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

問題

  • モジュールが起動したり停止したりすると、通常、その情報を示すINFOレベルのログトレースが存在する。 ただし、バージョン22.0.0以上のアプリケーションサーバーWidlFly/JBossを使用する場合、これらのトレースは表示されません。

Environment

  • DXP 7.3からFix Pack 3まで

解決策

  • これらのトレースを再び表示するためには、この行を追加する必要があります:
    <module name="org.slf4j.impl"/>
    をファイルに入れてください:
    $LIFERAY_HOME/wildfly-23.0.2/standalone/deployments/ROOT.war/WEB-INF/jboss-deployment-structure.xml
    を要素排除の中に入れてください。

    ファイル全体はこのような感じになります:
    ?xml version="1.0"?>
    
    <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
        <deployment>
            <exclusions>
                <module name="org.apache.log4j" />
                <module name="org.hibernate" />
                <module name="org.slf4j" />
                <module name="org.slf4j.impl"/>
            </exclusions>
            <dependencies>
                <module meta-inf="export" name="com.liferay.portal">
                    <imports>
                        <include path="META-INF" />
                    </imports>
                </module>
                <module name="javax.mail.api" />
                <module name="org.apache.xerces" />
                <module name="org.jboss.modules" />
            </dependencies>
        </deployment>
    </jboss-deployment-structure>
  • 変更を有効にするために、サーバーを再起動する必要があります。

追加情報

  • この問題は、 LPS-149964のおかげで、Fix Pack 4 以降の 7.3 で修正されています。
did-this-article-resolve-your-issue

legacy-knowledge-base