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

Jar Deploymentのたびに再起動が必要です。

written-by

Ankit Gupta

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

問題

jarをデプロイすると、サーバーを再起動しない限り反映されない

環境

  • Liferay DXP 7.0

解決策

サーバーを再起動しない限り、jarがデプロイされ、ポータルに反映されないことがあります。 この場合、デプロイのたびに本番環境を再起動することができないため、問題が発生する可能性があります。 何が原因かを確認するために、 portal-ext.properties で以下のプロパティが追加されているかどうか確認してください。

direct.servlet.context.reload=false

デフォルトでは、上記プロパティは "true "に設定されています。 JSPが変更された場合、そのJSPに関連するサーブレットをリフレッシュする役割を担っています。

そのため、 direct.servlet.context.reload=false を削除するか、 portal-ext.propertiesdirect.servlet.context.reload=true を設定すれば、jarサーバーを展開するたびに再起動する必要がなくなり、問題は解決します。

ご注意: 一度、portal-ext.propertiesの上記プロパティを削除するか、 true に設定してください。 変更を反映させるために、サーバーを再起動する必要があります。

did-this-article-resolve-your-issue

legacy-knowledge-base