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

多数の antiJarLocking 警告

Written By

Anishq Sharma

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.

問題

  • Liferay 6.2 を実行し、Tomcat 7.0 を Tomcat 8.5 にアップグレードすると、プロパティ 'antiJarLocking' に関する多数の警告メッセージが表示されます。
    org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.

Environment

  • Liferay ポータル 6.2

解決策

  • この問題を解決するには、次の 2 つの方法があります。
    • まず、次のコマンドを使用して、以下のすべてのファイルで antiJARLocking="true" プロパティを手動で削除します。
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/oauth-portlet/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/sync-web/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/marketplace-portlet/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/calendar-portlet/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/kaleo-web/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/opensocial-portlet/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/web-form-portlet/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/resources-importer-web/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/notifications-portlet/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/kaleo-designer-portlet/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/sync-admin-portlet/META-INF/context.xml
      sed -i '/antiJARLocking="true"/d' $TOMCAT_DIR/webapps/kaleo-forms-portlet/META-INF/context.xml
    • 2 番目の簡単な方法は、LPKG ファイルが展開されるたびに context.xml ファイルから antiJarLocking = "true" プロパティを自動的に削除する LPS-127995 のホットフィックスを取得するよう求めるサポート チケットを作成することです。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base