<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE document [
  <!ENTITY project SYSTEM "project.xml">
]>
<document url="html-manager-howto.html">

    &project;

    <properties>
        <author email="glenn@apache.org">Glenn L. Nielsen</author>
        <primary><title>Tomcat Web Application Manager How To</title></primary>
        <title>Tomcat Webアプリケーションマネージャの手引き</title>
        <translator>高橋達男</translator>
    </properties>

<body>

<primary>
<section name="Introduction"/>
</primary>
<section name="はじめに">

<primary>
<p>In many production environments it is very useful to have the capability
to manage your web applications without having to shut down and restart
Tomcat.  This document is for the HTML web interface to the web application
<a href="manager-howto.html">manager</a>.</p>
</primary>
<p>Tomcat をシャットダウンして再起動せずに
Webアプリケーションを管理できる機能は多くの本番環境で非常に便利です。
このドキュメントは <a href="manager-howto.html">manager</a> 
Webアプリケーションの HTML による Webインタフェースに関する説明です。</p>

<primary>
<p>The interface is divided into five sections:
<ul>
  <li><strong>Message</strong> - Displays success and failure messages.</li>
  <li><strong>Manager</strong> - General manager operations like list and
      help.</li>
  <li><strong>Applications</strong> - List of web applications and
      commands.</li>
  <li><strong>Deploy</strong> - Deploying web applications.</li>
  <li><strong>Server Information</strong> - Information about the Tomcat
      server.</li>
</ul>
</p>
</primary>
<p>インタフェースは5つのセクションに分かれます。
<ul>
  <li><strong>メッセージ</strong> - 処理成功/失敗のメッセージを表示します。</li>
  <li><strong>マネージャ</strong> - 一覧表示やヘルプなどマネージャの一般的な操作。
  </li>
  <li><strong>アプリケーション</strong> - Webアプリケーションとコマンドの一覧。
  </li>
  <li><strong>配備</strong> - Webアプリケーションを配備します。</li>
  <li><strong>サーバ情報</strong> - Tomcatサーバに関する情報。</li>
</ul>
</p>

</section>

<primary>
<section name="Message"/>
</primary>
<section name="メッセージ">

<primary>
<p>
Displays information about the success or failure of the last web application
manager command you performed. If it succeeded <strong>OK</strong> is displayed
and may be followed by a success message. If it failed <strong>FAIL</strong>
is displayed followed by an error message. Common failure messages are
documented below for each command.  The complete list of failure messages for
each command can be found in the <a href="manager-howto.html">manager</a> web
application documentation.
</p>
</primary>
<p>
直前に実行した
Webアプリケーションマネージャのコマンドの成功/失敗に関する情報を表示します。
成功した場合、<strong>成功</strong>と表示され、
その後にメッセージが続くこともあります。
失敗した場合、<strong>失敗</strong>と表示され、
その後にエラーメッセージが続きます。
共通の失敗メッセージは各コマンドごとに以下で文書化しています。
各コマンドの失敗メッセージの全一覧は<a href="manager-howto.html">マネージャ</a>
Webアプリケーションのドキュメントにあります。
</p>
<note>初期表示時は「OK」と表示されます。</note>

</section>

<primary>
<section name="Manager"/>
</primary>
<section name="マネージャ">

<primary>
<p>The Manager section has three links:
<ul>
  <li><strong>List Applications</strong> - Redisplay a list of web
      applications.</li>
  <li><strong>HTML Manager Help</strong> - A link to this document.</li>
  <li><strong>Manager Help</strong> - A link to the comprehensive Manager
      App HOW TO.</li>
</ul>
</p>
</primary>
<p>「マネージャ」セクションにはリンクが3つあります。
<ul>
  <li><strong>アプリケーションの一覧</strong> - 
      Webアプリケーション一覧を再表示します。</li>
  <li><strong>HTML Manager Help</strong> - このドキュメントへのリンク。</li>
  <li><strong>Manager Help</strong> - 
      マネージャアプリケーションの総合的な手引きへのリンク。</li>
</ul>
</p>

</section>

<primary>
<section name="Applications"/>
</primary>
<section name="アプリケーション">

<primary>
<p>The Applications section lists information about all the installed web
applications and provides links for managing them. For each web application
the following is displayed:
<ul>
  <li><strong>Path</strong> - The web applicaton context path.</li>
  <li><strong>Display Name</strong> - The display name for the web application
      if it has one configured in its "web.xml" file.</li>
  <li><strong>Running</strong> - Whether the web application is running and
      available (true), or not running and unavailable (false).</li>
  <li><strong>Sessions</strong> - The number of active sessions for remote
      users of this web application.  The number of sessions is a link which
      when submitted displays more details about session usage by the web
      application in the Message box.</li>
  <li><strong>Commands</strong> - Lists all commands which can be performed on
      the web application. Only those commands which can be performed will be
      listed as a link which can be submitted. No commands can be performed on
      the manager web application itself. The following commands can be
      performed:
      <ul>
        <li><strong>Start</strong> - Start a web application which had been
            stopped.</li>
        <li><strong>Stop</strong> - Stop a web application which is currently
            running and make it unavailable.</li>
        <li><strong>Reload</strong> - Reload the web application so that new
            ".jar" files in <code>/WEB-INF/lib/</code> or new classes in
            <code>/WEB-INF/classes/</code> can be used.</li>
        <li><strong>Undeploy</strong> - Stop and then remove this web
             application from the server.</li>
      </ul>
  </li>
</ul>
</p>
</primary>
<p>「アプリケーション」セクションにはインストール済みのすべての
Webアプリケーションに関する情報が一覧になっており、
それを管理するリンクも提供されています。
各アプリケーションごとに以下の項目が表示されます。
<ul>
  <li><strong>パス</strong> - Webアプリケーションのコンテキストパス。</li>
  <li><strong>表示名</strong> - Webアプリケーションの表示名。
      "web.xml" ファイルで設定されている場合に表示されます。</li>
  <li><strong>実行中</strong> - Webアプリケーションが実行中で使用可能 (true)
      か、それとも実行中でなく使用不可 (false) かを示します。</li>
  <li><strong>セッション</strong> - 
      この Webアプリケーションのアクティブなリモートユーザーセッション数。
      セッション数はリンクになっており、クリックすると「メッセージ」セクションに
      Webアプリケーションでのセッション使用状況に関する詳細が表示されます。</li>
  <li><strong>コマンド</strong> - 
      Webアプリケーションに対して実行するコマンドがすべて表示されます。
      実行可能なコマンドのみクリック可能なリンクとして表示されます。
      マネージャ Webアプリケーションそのものに対してはコマンドは実行できません。
      実行可能なコマンドは以下のとおりです。
      <ul>
        <li><strong>起動</strong> - 停止している Webアプリケーションを起動します。
            </li>
        <li><strong>停止</strong> - 現在実行中のWebアプリケーションを停止し、
            使用不可にします。</li>
        <li><strong>再ロード</strong> - Webアプリケーションを再ロードし、
            <code>/WEB-INF/lib/</code> にある新しい ".jar" ファイルや
            <code>/WEB-INF/classes/</code> 
            にある新しいクラスを使えるようにします。</li>
        <li><strong>配備解除</strong> - この Webアプリケーションを停止し、
             このサーバから削除します。</li>
      </ul>
  </li>
</ul>
</p>

<primary>
<subsection name="Start"/>
</primary>
<subsection name="起動">

<primary>
<p>Signal a stopped application to restart, and make itself available again.
Stopping and starting is useful, for example, if the database required by
your application becomes temporarily unavailable.  It is usually better to
stop the web application that relies on this database rather than letting
users continuously encounter database exceptions.</p>
</primary>
<p>停止したアプリケーションに再起動を指示し、再び使用可能にします。
例えば、アプリケーションで必要なデータベースが一時的に使用不可になった場合、
停止・起動ができると便利です。たいていの場合、
このデータベースを使う Webアプリケーションを停止させた方が、
ユーザに対してデータベース例外を表示し続けるよりは良いでしょう。
</p>

<primary>
<p>If this command succeeds, you will see a Message like this:</p>
</primary>
<p>このコマンドが成功すると、以下のようなメッセージが表示されます。</p>
<primary>
<source>
OK - Started application at context path /examples
</source>
</primary>
<source>
成功 - コンテキストパス /examples でアプリケーションを起動しました
</source>

<primary>
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
error message.  Possible causes for problems include:
<ul>
<li><em>Encountered exception</em>
    <blockquote>             
    <p>An exception was encountered trying to start the web application.
    Check the Tomcat 5 logs for the details.</p>
    </blockquote></li>       
<li><em>Invalid context path was specified</em>
    <blockquote>             
    <p>The context path must start with a slash character, unless you are
    referencing the ROOT web application -- in which case the context path
    must be a zero-length string.</p>
    </blockquote></li>       
<li><em>No context exists for path /foo</em>
    <blockquote>             
    <p>There is no deployed application on the context path
    that you specified.</p>  
    </blockquote></li>       
<li><em>No context path was specified</em>
    <blockquote>             
    The <code>path</code> parameter is required.
    </blockquote></li>       
</ul>
</p>
</primary>
<p>そうでなければ、メッセージは <code>失敗</code> で始まり、
エラーメッセージが表示されます。問題の原因としては以下のものが考えられます。
<ul>
<li><em>例外が発生しました</em>
    <blockquote>             
    <p>Webアプリケーションの起動時に例外が発生しました。
    詳細については Tomcat 5 のログをチェックして下さい。</p>
    </blockquote></li>       
<li><em>無効なコンテキストパスが指定されました</em>
    <blockquote>             
    <p>コンテキストパスはスラッシュ ("/") で始まらなければなりません。
    ROOT Webアプリケーションを参照している場合は例外です
    -- この場合は、コンテキストパスは長さ0の文字列になります。</p>
    </blockquote></li>       
<li><em>パス /foo のコンテキストが存在しません</em>
    <blockquote>             
    <p>指定したコンテキストのアプリケーションは配備されていません。</p>  
    </blockquote></li>       
<li><em>コンテキストパスが指定されていません</em>
    <blockquote>             
    <code>path</code> パラメータが必要です。
    </blockquote></li>       
</ul>
</p>
<note>"No context path was specified"というメッセージは5.0.16では存在しません。
"Context path is required"(コンテキストパスが必要です)のことでしょうか?</note>

</subsection>

<primary>
<subsection name="Stop"/>
</primary>
<subsection name="停止">

<primary>
<p>Signal an existing application to make itself unavailable, but leave it
deployed.  Any request that comes in while an application is
stopped will see an HTTP error 404, and this application will show as
"stopped" on a list applications command.</p>
</primary>
<p>既存のアプリケーションを使用不可にするよう指示しますが、配備解除はしません。
アプリケーションが停止している時に送られたリクエストの結果はすべて HTTPエラー404
となり、アプリケーション一覧では「実行中」欄に false が表示されます。</p>
<note>実際にブラウザで表示した場合、0バイトのレスポンスが返っているらしく、
何も表示されません。どうやら、manager-howto.xml をそのままコピーしたようなので、
HTML画面での表示にあわせて記述を変えています。</note>

<primary>
<p>If this command succeeds, you will see a Message like this:</p>
</primary>
<p>このコマンドが成功すると、以下のようなメッセージが表示されます。</p>
<primary>
<source>
OK - Stopped application at context path /examples
</source>
</primary>
<source>
成功 - コンテキストパス /examples でアプリケーションを停止しました
</source>

<primary>
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
error message.  Possible causes for problems include:
<ul>                         
<li><em>Encountered exception</em>
    <blockquote>             
    <p>An exception was encountered trying to stop the web application.
    Check the Tomcat 5 logs for the details.</p>
    </blockquote></li>       
<li><em>Invalid context path was specified</em>
    <blockquote>             
    <p>The context path must start with a slash character, unless you are
    referencing the ROOT web application -- in which case the context path
    must be a zero-length string.</p>
    </blockquote></li>       
<li><em>No context exists for path /foo</em>
    <blockquote>             
    <p>There is no deployed application on the context path
    that you specified.</p>  
    </blockquote></li>       
<li><em>No context path was specified</em>
    <blockquote>             
    The <code>path</code> parameter is required.
    </blockquote></li>       
</ul>
</p>
</primary>
<p>そうでなければ、メッセージは <code>失敗</code> で始まり、
エラーメッセージが表示されます。問題の原因としては以下のものが考えられます。
<ul>                         
<li><em>例外が発生しました</em>
    <blockquote>             
    <p>Webアプリケーションの起動時に例外が発生しました。
    詳細については Tomcat 5 のログをチェックして下さい。</p>
    </blockquote></li>       
<li><em>無効なコンテキストパスが指定されました</em>
    <blockquote>             
    <p>コンテキストパスはスラッシュ ("/") で始まらなければなりません。
    ROOT Webアプリケーションを参照している場合は例外です
    -- この場合は、コンテキストパスは長さ0の文字列になります。</p>
    </blockquote></li>       
<li><em>パス /foo のコンテキストが存在しません</em>
    <blockquote>             
    <p>指定したコンテキストのアプリケーションは配備されていません。</p>  
    </blockquote></li>       
<li><em>コンテキストパスが指定されていません</em>
    <blockquote>             
    <code>path</code> パラメータが必要です。
    </blockquote></li>       
</ul>
</p>
<note>"No context path was specified"というメッセージは5.0.16では存在しません。
"Context path is required"(コンテキストパスが必要です)のことでしょうか?</note>

</subsection>

<primary>
<subsection name="Reload"/>
</primary>
<subsection name="再ロード">

<primary>
<p>Signal an existing application to shut itself down and reload.  This can
be useful when the web application context is not reloadable and you have
updated classes or property files in the <code>/WEB-INF/classes</code>
directory or when you have added or updated jar files in the
<code>/WEB-INF/lib</code> directory.
</p>
</primary>
<p>既存のアプリケーションにシャットダウンと再ロードを指示します。
Webアプリケーションコンテキストが再ロード可能になっていなくて
<code>/WEB-INF/classes</code> のクラスやプロパティファイルを更新した場合や、
<code>/WEB-INF/lib</code> ディレクトリの
JARファイルを更新した場合に便利かもしれません。
</p>
<primary>
<p><strong>NOTE:</strong> The <code>/WEB-INF/web.xml</code>
web application configuration file is not checked on a reload;
the previous web.xml configuration is used.
If you have made changes to your web.xml file you must stop
then start the web application.
</p>
</primary>
<p><strong>注意:</strong> <code>/WEB-INF/web.xml</code>
の Webアプリケーション設定ファイルは再ロード時にチェックされず、
以前の web.xml の設定が使われます。web.xml ファイルを変更した場合は、
Webアプリケーションを停止・起動しなければなりません
</p>

<primary>
<p>If this command succeeds, you will see a Message like this:</p>
</primary>
<p>このコマンドが成功すると、以下のようなメッセージが表示されます。</p>
<primary>
<source>
OK - Reloaded application at context path /examples
</source>
</primary>
<source>
OK - コンテキストパス /examples のアプリケーションを再ロードしました
</source>

<primary>
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
error message.  Possible causes for problems include:
<ul>
<li><em>Encountered exception</em>
    <blockquote>             
    <p>An exception was encountered trying to restart the web application.
    Check the Tomcat 5 logs for the details.</p>
    </blockquote></li>       
<li><em>Invalid context path was specified</em>
    <blockquote>             
    <p>The context path must start with a slash character, unless you are
    referencing the ROOT web application -- in which case the context path
    must be a zero-length string.</p>
    </blockquote></li>       
<li><em>No context exists for path /foo</em>
    <blockquote>             
    <p>There is no deployed application on the context path
    that you specified.</p>  
    </blockquote></li>       
<li><em>No context path was specified</em>
    <blockquote>             
    The <code>path</code> parameter is required.
    </blockquote></li>       
<li><em>Reload not supported on WAR deployed at path /foo</em>
    <blockquote>             
    Currently, application reloading (to pick up changes to the classes or
    <code>web.xml</code> file) is not supported when a web application is
    installed directly from a WAR file, which happens when the host is 
    configured to not unpack WAR files. As it only works when the web 
    application is installed from an unpacked directory, if you are using 
    a WAR file, you should <code>undeploy</code> and then <code>deploy</code> 
    the application again to pick up your changes.
    </blockquote></li>       
</ul>
</p>
</primary>
<p>そうでなければ、メッセージは <code>失敗</code> で始まり、
エラーメッセージが表示されます。問題の原因としては以下のものが考えられます。
<ul>
<li><em>例外が発生しました</em>
    <blockquote>             
    <p>Webアプリケーションの起動時に例外が発生しました。
    詳細については Tomcat 5 のログをチェックして下さい。</p>
    </blockquote></li>       
<li><em>無効なコンテキストパスが指定されました</em>
    <blockquote>             
    <p>コンテキストパスはスラッシュ ("/") で始まらなければなりません。
    ROOT Webアプリケーションを参照している場合は例外です
    -- この場合は、コンテキストパスは長さ0の文字列になります。</p>
    </blockquote></li>       
<li><em>パス /foo のコンテキストが存在しません</em>
    <blockquote>             
    <p>指定したコンテキストのアプリケーションは配備されていません。</p>  
    </blockquote></li>       
<li><em>コンテキストパスが指定されていません</em>
    <blockquote>             
    <code>path</code> パラメータが必要です。
    </blockquote></li>       
<li><em>パス /foo に配備されたWARファイルでは再ロードがサポートされていません</em>
    <blockquote>             
    たまたまホストでWARファイルを解凍しないように設定されていて、
    Webアプリケーションが WARファイルから直接インストールされた場合は、
    現在のところ、アプリケーションの再ロード (クラスや <code>web.xml</code>
    ファイルの変更の反映) はサポートされません。
    再ロードはアーカイブされていないディレクトリから
    Webアプリケーションがインストールされた場合のみ有効なので、
    WARファイルを使う場合、アプリケーションに変更を反映させるには、
    <code>配備解除</code> した上で再度 <code>配備</code> しなければなりません。
    </blockquote></li>       
</ul>
</p>
<note>"No context path was specified"というメッセージは5.0.16では存在しません。
"Context path is required"(コンテキストパスが必要です)のことでしょうか?</note>

</subsection>

<primary>
<subsection name="Undeploy"/>
</primary>
<subsection name="配備解除">

<primary>
<p><strong><font color="red">WARNING</font> - This command will delete the
contents of the web application directory and/or ".war" file if it exists within
the <code>appBase</code> directory (typically "webapps") for this virtual host
</strong>.  The web application temporary work directory is also deleted.  If
you simply want to take an application out of service, you should use the
<code>/stop</code> command instead.</p>
</primary>
<p><strong><font color="red">警告</font> - このコマンドによって、
この仮想ホストの <code>appBase</code> ディレクトリ (通常は"webapps") 
内に存在する Webアプリケーションディレクトリの中身や".war"ファイル、
あるいはその両方が削除されます。</strong>
Webアプリケーションの一時的なワークディレクトリも削除されます。
アプリケーションのサービスを休止したいだけなら、
代わりに <code>/stop</code> コマンドを使うべきです。</p>

<primary>
<p>Signal an existing application to gracefully shut itself down, and then
remove it from Tomcat (which also makes this context path available for
reuse later).  This command is the logical opposite of the
<code>/deploy</code> Ant command, and the related deploy features available 
in the HTML manager.</p>
</primary>
<p>既存のアプリケーションを緩やかに (gracefully) シャットダウンし、
Tomcat から削除するよう指示します 
(またこれによって、このコンテキストパスは後で再利用可能となります)。
これは <code>/deploy</code> Ant コマンドやそれに関連する 
HTMLマネージャの配備機能と論理的に反対のコマンドです。</p>
<note>"gracefully"の訳はApache HTTPDの訳を参考にしました。</note>

<primary>
<p>If this command succeeds, you will see a Message like this:</p>
</primary>
<p>このコマンドが成功すると、以下のようなメッセージが表示されます。</p>
<primary>
<source>
OK - Undeployed application at context path /examples
</source>
</primary>
<source>
OK - 成功 - コンテキストパス /examples のアプリケーションを配備解除しました
</source>

<primary>
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
error message.  Possible causes for problems include:
<ul>                         
<li><em>Encountered exception</em>
    <blockquote>             
    <p>An exception was encountered trying to undeploy the web application.
    Check the Tomcat logs for the details.</p>
    </blockquote></li>       
<li><em>Invalid context path was specified</em>
    <blockquote>             
    <p>The context path must start with a slash character, unless you are
    referencing the ROOT web application -- in which case the context path
    must be a zero-length string.</p>
    </blockquote></li>       
<li><em>No context exists for path /foo</em>
    <blockquote>             
    <p>There is no deployed application on the context path
    that you specified.</p>  
    </blockquote></li>       
<li><em>No context path was specified</em>
    <blockquote>             
    The <code>path</code> parameter is required.
    </blockquote></li>       
</ul>
</p>
</primary>
<p>そうでなければ、メッセージは <code>失敗</code> で始まり、
エラーメッセージが表示されます。問題の原因としては以下のものが考えられます。
<ul>                         
<li><em>例外が発生しました</em>
    <blockquote>             
    <p>Webアプリケーションの起動時に例外が発生しました。
    詳細については Tomcat 5 のログをチェックして下さい。</p>
    </blockquote></li>       
<li><em>無効なコンテキストパスが指定されました</em>
    <blockquote>             
    <p>コンテキストパスはスラッシュ ("/") で始まらなければなりません。
    ROOT Webアプリケーションを参照している場合は例外です
    -- この場合は、コンテキストパスは長さ0の文字列になります。</p>
    </blockquote></li>       
<li><em>パス /foo のコンテキストが存在しません</em>
    <blockquote>             
    <p>指定したコンテキストのアプリケーションは配備されていません。</p>  
    </blockquote></li>       
<li><em>コンテキストパスが指定されていません</em>
    <blockquote>             
    <code>path</code> パラメータが必要です。
    </blockquote></li>       
</ul>
</p>
<note>"No context path was specified"というメッセージは5.0.16では存在しません。
"Context path is required"(コンテキストパスが必要です)のことでしょうか?</note>

</subsection>

</section>

<primary>
<section name="Deploy"/>
</primary>
<section name="配備">

<primary>
<p>Web applications can be deployed using files or directories located
on the Tomcat server or you can upload a web application archive (WAR)
file to the server.</p>
</primary>
<p>Webアプリケーションは Tomcatサーバ上のファイルやディレクトリを使って配備できますが、
Webアプリケーションアーカイブ (WAR) ファイルをサーバにアップロードすることもできます。</p>

<primary>
<p>To install an application, fill in the appropriate fields for the type
of install you want to do and then submit it using the <i>Install</i>
button.</p>
</primary>
<p>アプリケーションをインストールするには、
行ないたいインストールの種類に応じて適切なフィールドに入力し、
<i>配備</i> ボタンをクリックします。</p>

<primary>
<subsection name="Deploy directory or WAR file located on server"/>
</primary>
<subsection name="サーバ上のディレクトリや WAR ファイルの配備">

<primary>
<p>Deploy and start a new web application, attached to the specified <i>Context
Path:</i> (which must not be in use by any other web application).
This command is the logical opposite of the <em>Undeploy</em> command.</p>
</primary>
<p>指定した<i>コンテキストパス (省略可):</i> (必ずしもすべての
Webアプリケーションで使われるわけではありません) に付随する、
新しい Webアプリケーションを配備・起動します。
<em>配備解除</em> コマンドと論理的に反対のコマンドです。</p>

<primary>
<p>There are a number of different ways the deploy command can be used.</p>
</primary>
<p>配備コマンドの使い方は何通りもあります。</p>

<primary>
<h3>Deploy a Directory or WAR by URL</h3>
</primary>
<h3>URL 指定でのディレクトリまたは WARファイルの配備</h3>

<primary>
<p>Install a web application directory or ".war" file located on the Tomcat
server. If no <i>Context Path</i> is specified, the directory name or the
war file name without the ".war" extension is used as the path. The
<i>WAR or Directory URL</i> specifies a URL (including the <code>file:</code>
scheme) for either a directory or a web application archive (WAR) file. The
supported syntax for a URL referring to a WAR file is described on the Javadocs
page for the <code>java.net.JarURLConnection</code> class.  Use only URLs that
refer to the entire WAR file.</p>
</primary>
<p>Tomcatサーバ上の Webアプリケーションのディレクトリや
".war"ファイルをインストールします。
<i>コンテキストパス</i> が指定されていない場合は、
ディレクトリ名、またはWARファイル名から拡張子".war"を省いた名前がパスとして使われます。
<i>WAR またはディレクトリのURL</i> では、ディレクトリ、
Webアプリケーションアーカイブ (WAR) ファイルのいずれかの
URL (<code>file:</code>URI スキームを含む) を指定します。
WARファイルを参照する URL でサポートされている構文は 
<code>java.net.JarURLConnection</code> クラスの Javadoc に記述されています。
WARファイルの完全名を参照する URL しか使えません。</p>

<primary>
<p>In this example the web application located in the directory
<code>C:\path\to\foo</code> on the Tomcat server (running on Windows)
is deployed as the web application context named <code>/footoo</code>.
<source>
Context Path: /footoo
WAR or Directory URL: file:C:/path/to/foo
</source>
</p>
</primary>
<p>以下の例では (Windows 上で実行される) Tomcat サーバの <code>C:\path\to\foo</code>
というディレクトリにある Webアプリケーションが <code>/footoo</code>
というコンテキストの Webアプリケーションとして配備されます。
<source>
コンテキストパス (省略可): /footoo
WARファイル又はディレクトリのURL: file:C:/path/to/foo
</source>
</p>

<primary>
<p>In this example the ".war" file <code>/path/to/bar.war</code> on the
Tomcat server (running on Unix) is deployed as the web application
context named <code>/bar</code>. Notice that there is no <code>path</code>
parameter so the context path defaults to the name of the web application
archive file without the ".war" extension.
<source>
WAR or Directory URL: jar:file:/path/to/bar.war!/
</source>
</p>
</primary>
<p>以下の例では (Unix 上で実行される) Tomcat サーバの <code>/path/to/bar.war</code>
という WARファイルが、<code>/bar</code>というコンテキストの
Webアプリケーションとして配備されます。<code>コンテキストパス</code>
パラメータが指定されていないため、コンテキストパスはデフォルトである、
Webアプリケーションアーカイブファイル名から拡張子".war"を省いた名前になることに注意して下さい。
<source>
WARファイル又はディレクトリのURL: jar:file:/path/to/bar.war!/
</source>
</p>

<primary>
<h3>Deploy a Directory or War from the Host appBase</h3>
</primary>
<h3>ホストの appBase 指定でのディレクトリや WAR ファイルの配備</h3>

<primary>
<p>Install a web application directory or ".war" file located in your Host
appBase directory. If no <i>Context Path</i> is specified the directory name
or the war file name without the ".war" extension is used as the path.</p>
</primary>
<p>ホストの appBaseディレクトリ配下の Webアプリケーションのディレクトリまたは
".war"ファイルをインストールします。
<i>コンテキストパス</i> が指定されていない場合は、
ディレクトリ名、またはWARファイル名から拡張子".war"を省いた名前がパスとして使われます。</p>

<primary>
<p>In this example the web application located in a subdirectory named
<code>foo</code> in the Host appBase directory of the Tomcat server is
deployed as the web application context named <code>/foo</code>. Notice
that there is no <code>path</code> parameter so the context path defaults
to the name of the web application directory.
<source>
WAR or Directory URL: foo
</source>
</p>
</primary>
<p>以下の例では Tomcatサーバのホストの appBaseディレクトリの下の
<code>foo</code> ディレクトリにある Webアプリケーションが
<code>/foo</code> という Webアプリケーションコンテキストで配備されます。
<code>コンテキストパス</code> パラメータが指定されていないので、
コンテキストパスはデフォルトの 
Webアプリケーションのディレクトリ名となっていることに注意して下さい。
<source>
WARファイル又はディレクトリのURL: foo
</source>
</p>

<primary>
<p>In this example the ".war" file <code>bar.war</code> located in your
Host appBase directory on the Tomcat server is deployed as the web
application context named <code>/bartoo</code>.
<source>
Context Path: /bartoo
WAR or Directory URL: bar.war
</source>
</p>
</primary>
<p>以下の例では Tomcatサーバのホストの appBaseディレクトリにある
<code>bar.war</code> という".war"ファイルが <code>/bartoo</code>
という Webアプリケーションコンテキストで配備されます。
<source>
コンテキストパス (省略可): /bartoo
WARファイル又はディレクトリのURL: bar.war
</source>
</p>

<primary>
<h3>Deploy using a Context configuration ".xml" file</h3>
</primary>
<h3>コンテキスト設定".xml"ファイルを使った配備</h3>

<primary>
<p>If the Host deployXML flag is set to true, you can install a web
application using a Context configuration ".xml" file and an optional
".war" file or web application directory. The <i>Context Path</i>
is not used when installing a web application using a context ".xml"
configuration file.</p>
</primary>
<p>ホストの deployXML フラグが true の場合、コンテキスト設定
".xml"ファイルと、オプションで ".war"ファイルまたは 
Webアプリケーションディレクトリを使って 
Webアプリケーションをインストールできます。
コンテキスト設定".xml"ファイルを使って
Webアプリケーションをインストールする際には <i>コンテキストパス</i>
は使われません。</p>

<primary>
<p>A Context configuration ".xml" file can contain valid XML for a
web application Context just as if it were configured in your
Tomcat <code>server.xml</code> configuration file. Here is an
example for Tomcat running on Windows:
<source>
&lt;Context path="/foobar" docBase="C:\path\to\application\foobar"
         debug="0"&gt;

  &lt;!-- Link to the user database we will get roles from --&gt;
  &lt;ResourceLink name="users" global="UserDatabase"
                type="org.apache.catalina.UserDatabase"/&gt;

&lt;/Context&gt;
</source>
</p>
</primary>
<p>コンテキスト設定".xml"ファイルには、Tomcat の 
<code>server.xml</code> で設定するのと同じように
妥当な XML を記述できます。Windows 上で実行される Tomcat の例を示します。
<source>
&lt;Context path="/foobar" docBase="C:\path\to\application\foobar"
         debug="0"&gt;

  &lt;!-- Link to the user database we will get roles from --&gt;
  &lt;ResourceLink name="users" global="UserDatabase"
                type="org.apache.catalina.UserDatabase"/&gt;

&lt;/Context&gt;
</source>
</p>

<primary>
<p>Use of the <i>WAR or Directory URL</i> is optional. When used
to select a web application ".war" file or directory it overrides any
docBase configured in the context configuration ".xml" file.</p>
</primary>
<p><i>WARファイル又はディレクトリのURL:</i> はオプションです。
Webアプリケーションの ".war"ファイルまたはディレクトリを選択するのに使うと、
コンテキスト設定".xml"ファイルで設定された docBase はすべて上書きされます。</p>

<primary>
<p>Here is an example of installing an application using a Context
configuration ".xml" file for Tomcat running on Windows.
<source>
XML Configuration file URL: file:C:/path/to/context.xml
</source>
</p>
</primary>
<p>Windows 上で実行される Tomcat 用のコンテキスト設定".xml" 
ファイルを使ってアプリケーションをインストールする例を示します。
<source>
XML設定ファイルのURL: file:C:/path/to/context.xml
</source>
</p>

<primary>
<p>Here is an example of installing an application using a Context
configuration ".xml" file and a web application ".war" file located
on the server (Tomcat running on Unix).
<source>
XML Configuration file URL: file:/path/to/context.xml
WAR or Directory URL: jar:file:/path/to/bar.war!/
</source>
</p>
</primary>
<p>(Unix 上で実行される Tomcat) サーバ上のコンテキスト設定
".xml"ファイルと Webアプリケーション 
".war"ファイルをインストールする例を示します。
<source>
XML設定ファイルのURL: file:/path/to/context.xml
WARファイル又はディレクトリのURL: jar:file:/path/to/bar.war!/
</source>
</p>

</subsection>

<primary>
<subsection name="Upload a WAR file to install"/>
</primary>
<subsection name="WARファイルをアップロードしてインストール">

<primary>
<p>Upload a WAR file from your local system and install it into the
appBase for your Host. The name of the WAR file without the ".war"
extension is used as the context path name.</p>
</primary>
<p>ローカルシステムから WARファイルをアップロードして、ホストの
appBase にインストールします。コンテキストパス名には、
WARファイル名から拡張子".war"を省いた名前が使われます。</p>

<primary>
<p>Use the <i>Browse</i> button to select a WAR file to upload to the
server from your local desktop system.</p>
</primary>
<p>ローカルのデスクトップシステムからサーバにアップロードする
WARファイルを選択するには、<i>参照...</i> ボタンを使います。</p>

<primary>
<p>The .WAR file may include Tomcat specific deployment configuration, by 
including a Context configuration XML file in 
<code>/META-INF/context.xml</code>.</p>
</primary>
<p>.WAR ファイルでは <code>/META-INF/context.xml</code> というコンテキスト設定
XMLファイルを含めることで、Tomcat 固有の配備設定を含めることができます。</p>

<primary>
<p>Upload of a WAR file could fail for the following reasons:</p>
</primary>
<p>WARファイルのアップロードが失敗する理由としては以下のものが考えられます。</p>
<primary>
<ul>
<li><em>File uploaded must be a .war</em>
    <blockquote>
    <p>The upload install will only accept files which have the filename
    extension of ".war".</p>
    </blockquote></li>
<li><em>War file already exists on server</em>
    <blockquote>
    <p>If a war file of the same name already exists in your Host's
    appBase the upload will fail. Either undeploy the existing war file
    from your Host's appBase or upload the new war file using a different
    name.</p>
    </blockquote></li>
<li><em>File upload failed, no file</em>
    <blockquote>
    <p>The file upload failed, no file was received by the server.</p>
    </blockquote></li>
<li><em>Install Upload Failed, Exception:</em>
    <blockquote>
    <p>The war file upload or install failed with a Java Exception.
    The exception message will be listed.</p>
    </blockquote></li>
</ul>
</primary>
<ul>
<li><em>アップロードするファイルはWARファイルでなければいけません</em>
    <blockquote>
    <p>アップロードによるインストールの場合、拡張子が ".war"
    のファイルしか受け取れません。</p>
    </blockquote></li>
<li><em>WARファイルは既にサーバ上に存在します</em>
    <blockquote>
    <p>ホストの appBase に同じ名前の WAR ファイルが存在している場合、
    アップロードは失敗します。既存の WARファイルをホストの appBase
    から配備解除するか、別の名前で WAR ファイルをアップロードして下さい。</p>
    </blockquote></li>
<li><em>ファイルのアップロードが失敗しました、ファイルが存在しません</em>
    <blockquote>
    <p>ファイルアップロードが失敗し、サーバがファイルを受け取っていません。</p>
    </blockquote></li>
<li><em>配備のアップロードが失敗しました、例外:</em>
    <blockquote>
    <p>WARファイルのアップロードまたはインストールが失敗し、
    Javaの例外が発生しています。例外のメッセージが表示されます。</p>
    </blockquote></li>
</ul>

</subsection>

<primary>
<subsection name="Deployment Notes"/>
</primary>
<subsection name="配備での注意事項">

<primary>
<p>If the Host is configured with unpackWARs=true and you install a war
file, the war will be unpacked into a directory in your Host appBase
directory.</p>
</primary>
<p>unpackWARs=true という設定のホストで WARファイルをインストールすると、
WARファイルはホストの appBase ディレクトリに展開されます。</p>

<primary>
<p>If the application war or directory is deployed in your Host appBase
directory and either the Host is configured with autoDeploy=true or
liveDeploy=true, the Context path must match the directory name or
war file name without the ".war" extension.</p>
</primary>
<p>アプリケーションの WARファイルやディレクトリがホストの appBase
ディレクトリに配備され、ホストで autoDeploy=true、liveDeploy=true
のいずれかに設定されている場合、コンテキストパスはディレクトリ名か、
WARファイル名から拡張子".war"を省いた名前に合致しなければなりません。</p>

<primary>
<p>For security when untrusted users can manage web applications, the
Host deployXML flag can be set to false.  This prevents untrusted users
from installing web applications using a configuration XML file and
also prevents them from installing application directories or ".war"
files located outside of their Host appBase.</p>
</primary>
<p>セキュリティ上の理由から、信頼されないユーザが 
Webアプリケーションを管理できる場合は、ホストの deployXML フラグは
false になっています。これにより、信頼されないユーザは、設定 XML 
ファイルを使って Webアプリケーションをインストールできないだけでなく、
ホストの appBase ディレクトリ配下にないアプリケーションディレクトリや ".war"
ファイルのインストールができないようになっています。</p>

</subsection>

<primary>
<subsection name="Deploy Message"/>
</primary>
<subsection name="配備メッセージ">

<primary>
<p>If deployment and startup is successful, you will receive a Message
like this:</p>
</primary>
<p>配備・起動が成功すると、以下のようなメッセージが表示されます。</p>
<primary>
<source>
OK - Deployed application at context path /foo
</source>
</primary>
<source>
成功 - コンテキストパス /foo にアプリケーションをインストールしました
</source>

<primary>
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
error message.  Possible causes for problems include:</p>
</primary>
<p>そうでなければ、メッセージは <code>失敗</code> で始まり、
エラーメッセージが表示されます。問題の原因としては以下のものが考えられます。</p>
<primary>
<ul>
<li><em>Application already exists at path /foo</em>
    <blockquote>
    <p>The context paths for all currently running web applications must be
    unique.  Therefore, you must either undeploy the existing web
    application using this context path, or choose a different context path
    for the new one.</p>
    </blockquote></li>
<li><em>Document base does not exist or is not a readable directory</em>
    <blockquote>
    <p>The URL specified by the <i>WAR or Directory URL:</i> field must
    identify a directory on this server that contains the "unpacked" version
    of a web application, or the absolute URL of a web application archive
    (WAR) file that contains this application.  Correct the value entered for
    the <i>WAR or Directory URL:</i> field.</p>
    </blockquote></li>
<li><em>Encountered exception</em>
    <blockquote>
    <p>An exception was encountered trying to start the new web application.
    Check the Tomcat 5 logs for the details, but likely explanations include
    problems parsing your <code>/WEB-INF/web.xml</code> file, or missing
    classes encountered when initializing application event listeners and
    filters.</p>
    </blockquote></li>
<li><em>Invalid application URL was specified</em>
    <blockquote>
    <p>The URL for the <i>WAR or Directory URL:</i> field that you specified
    was not valid.  Such URLs must start with <code>file:</code>, and URLs
    for a WAR file must end in ".war".</p>
    </blockquote></li>
<li><em>Invalid context path was specified</em>
    <blockquote>
    <p>The context path must start with a slash character, unless you are
    referencing the ROOT web application -- in which case the context path
    must be a "/" string.</p>
    </blockquote></li>
<li><em>Context path must match the directory or WAR file name:</em>
    <blockquote>
    If the application war or directory is deployed in your Host appBase
    directory and either the Host is configured with autoDeploy=true or
    liveDeploy=true, the Context path must match the directory name or
    war file name without the ".war" extension.
    </blockquote></li>
<li><em>Only web applications in the Host web application directory can
     be deployed</em>
     <blockquote>
     If the Host deployXML flag is set to false this error will happen
     if an attempt is made to install a web application directory or
      ".war" file outside of the Host appBase directory.
     </blockquote></li>
</ul>
</primary>
<ul>
<li><em>アプリケーションは、既にパス  /foo に存在します</em>
    <blockquote>
    <p>現在動作している Webアプリケーションのコンテキストパスはすべて一意でなければなりません。
    したがって、このコンテキストパスを使っている既存の Webアプリケーションを配備解除するか、
    別のコンテキストパスにしなければなりません。</p>
    </blockquote></li>
<li><em>ドキュメントベースが存在しない、又は読めないディレクトリです</em>
    <blockquote>
    <p><i>WARファイル又はディレクトリのURL:</i> フィールドで指定する URL は 
    Webアプリケーションの「展開済み」バージョンを含んだこのサーバのディレクトリか、
    このアプリケーションを含む Webアプリケーションアーカイブ (WAR)
    ファイルの絶対 URL でなければなりません。<i>WARファイル又はディレクトリのURL:</i>
    フィールドに正しい値を入れてください。</p>
    </blockquote></li>
<li><em>例外が発生しました</em>
    <blockquote>
    <p>Webアプリケーション起動時に例外が発生しました。詳細については Tomcat 5
    のログをチェックする必要がありますが、<code>/WEB-INF/web.xml</code> 解析エラーや、
    アプリケーションイベントリスナやフィルタの初期化時にクラスが見つからなかった
    可能性もあります。</p>
    </blockquote></li>
<li><em>無効なアプリケーションのURLが指定されました</em>
    <blockquote>
    <p><i>WARファイル又はディレクトリのURL:</i>
    フィールドに指定した値が妥当でありません。
    この URL は <code>file:</code> で始まらなければならず、
    WARファイルの URL の場合、".war" で終わらなければなりません。</p>
    </blockquote></li>
<li><em>無効なコンテキストパスが指定されました</em>
    <blockquote>
    <p>コンテキストパスはスラッシュ ("/") で始まらなければなりません。
    ROOT Webアプリケーションを参照している場合は例外です
    -- この場合は、コンテキストパスは長さ0の文字列になります。</p>
    </blockquote></li>       
<li><em>コンテキストパスはディレクトリ又はWARファイル名に一致しなければいけません:</em>
    <blockquote>
    ホストの appBase ディレクトリにアプリケーションの
    WARファイルやディレクトリが配備され、ホストで autoDeploy=true、
    liveDeploy=true のどちらかの設定があった場合、
    コンテキストパスはディレクトリ名か、
    WARファイル名から拡張子".war"を省いた名前に合致しなければなりません。
    </blockquote></li>
<li><em>ホストWebアプリケーションディレクトリ中のWebアプリケーションだけがインストールできます</em>
    <blockquote>
    ホストの deployXML フラグが false になっていて、ホストの
    appBase ディレクトリ以外に Webアプリケーションディレクトリや
    ".war" ファイルをインストールしようとするとこのエラーが発生します。
    </blockquote></li>
</ul>

</subsection>
</section>

<primary>
<section name="Server Information"/>
</primary>
<section name="サーバ情報">

<primary>
<p>This section displays information about Tomcat, the operating system of
the server Tomcat is hosted on, and the Java Virtual Machine Tomcat is
running in.</p>
</primary>
<p>このセクションには Tomcat や、Tomcat がインストールされたサーバの OS、
それに Tomcat が実行されている Java仮想マシンに関する情報が表示されます。</p>

</section>

</body>

</document>
