方法

ArcGIS Web Adaptor のエラー メッセージをカスタマイズする

Last Published: January 3, 2024

サマリー

ArcGIS Web Adaptor から返されるエラー メッセージをユーザーがカスタマイズしたい場合があります。 たとえば、ユーザーが Portal for ArcGIS サービスの停止時に表示される次のエラー メッセージを変更したいとします。

Could not access any ArcGIS Enterprise portal machines. Please contact your system administrator.
エラー メッセージの例
Note:
This article only applies to versions older than 11.x.

手順

Windows のリソース ファイルの変更

  1. C:\inetpub\wwwroot\<webadaptorname>\App_GlobalResources\webAdaptor.en.resx」ファイルのバックアップを作成します。
  2. メモ帳でファイルを開きます。
Note:
If using a language other than English, make a backup of the appropriate file. For example, if using French, use the file  "webAdaptor.fr.resx", and then open it in Notepad.
  1. 変更するエラー メッセージを探します。この例では、次のメッセージです。
<value>Could not access any ArcGIS Enterprise portal machines. Please contact your system administrator.</value>
.resx ファイルの変更する値
  1. 次のように、目的の文字列に置き換えます。
<value>ArcGIS Enterprise portal is currently under maintenance. We apologize for the inconvenience.</value>
.resx ファイルの新しい値
  1. ページを更新すると、次のように新しいエラー メッセージが表示されます。
新しいエラー メッセージ

Linux のリソース ファイルの変更

  1. Web サーバーのディレクトリを開きます。たとえば、クライアントが Apache Tomcat Web サーバーを使用していて、そのパスが /data/tomcat であるとします
  2. ディレクトリを次のパスに変更します。
cd /data/tomcat/webapps/<webadaptorname>/WEB_INF/classes/res
  1. messages.properties ファイルのバックアップを作成します。
  2. テキスト エディターを使用してファイルを開きます。
nano messages.properties
Note:
If using a language other than English, make a backup of the appropriate file. For example, if using French, use the "messages_fr.properties" file.
  1. 変更するエラー メッセージを探します。
portal_cannot_proxy=Could not access any ArcGIS Enterprise portal machines. Please contact your system administrator.
messages.properties ファイル内の元のメッセージ
  1. 目的の文字列に置き換えます。
portal_cannot_proxy=ArcGIS Enterprise portal is currently under maintenance. We apologize for the inconvenience.
messages.properties ファイル内の新しいメッセージ
  1. Tomcat サービスを再起動します。
systemctl restart tomcat
  1. ページを更新すると、次の図のように新しいエラーが表示されます。
新しいエラー メッセージ

記事 ID: 000029282

AI によるサポートを受ける

Esri サポート AI チャットボットを使用して問題を迅速に解決します。

今すぐチャットを開始

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

今すぐチャットを開始

ダウンロード オプションに移動