Deploy and start a new web application, attached to the specified Context
Path: (which must not be in use by any other web application).
This command is the logical opposite of the Undeploy command.
指定したコンテキストパス (省略可): (必ずしもすべての
Webアプリケーションで使われるわけではありません) に付随する、
新しい Webアプリケーションを配備・起動します。
配備解除 コマンドと論理的に反対のコマンドです。
There are a number of different ways the deploy command can be used.
配備コマンドの使い方は何通りもあります。
Deploy a Directory or WAR by URL
URL 指定でのディレクトリまたは WARファイルの配備
Install a web application directory or ".war" file located on the Tomcat
server. If no Context Path is specified, the directory name or the
war file name without the ".war" extension is used as the path. The
WAR or Directory URL specifies a URL (including the file:
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 java.net.JarURLConnection class. Use only URLs that
refer to the entire WAR file.
Tomcatサーバ上の Webアプリケーションのディレクトリや
".war"ファイルをインストールします。
コンテキストパス が指定されていない場合は、
ディレクトリ名、またはWARファイル名から拡張子".war"を省いた名前がパスとして使われます。
WAR またはディレクトリのURL では、ディレクトリ、
Webアプリケーションアーカイブ (WAR) ファイルのいずれかの
URL (file:URI スキームを含む) を指定します。
WARファイルを参照する URL でサポートされている構文は
java.net.JarURLConnection クラスの Javadoc に記述されています。
WARファイルの完全名を参照する URL しか使えません。
以下の例では (Windows 上で実行される) Tomcat サーバの C:\path\to\foo
というディレクトリにある Webアプリケーションが /footoo
というコンテキストの Webアプリケーションとして配備されます。
 |  |  |
 |
コンテキストパス (省略可): /footoo
WARファイル又はディレクトリのURL: file:C:/path/to/foo
|  |
 |  |  |
以下の例では (Unix 上で実行される) Tomcat サーバの /path/to/bar.war
という WARファイルが、/barというコンテキストの
Webアプリケーションとして配備されます。コンテキストパス
パラメータが指定されていないため、コンテキストパスはデフォルトである、
Webアプリケーションアーカイブファイル名から拡張子".war"を省いた名前になることに注意して下さい。
 |  |  |
 |
WARファイル又はディレクトリのURL: jar:file:/path/to/bar.war!/
|  |
 |  |  |
Deploy a Directory or War from the Host appBase
ホストの appBase 指定でのディレクトリや WAR ファイルの配備
Install a web application directory or ".war" file located in your Host
appBase directory. If no Context Path is specified the directory name
or the war file name without the ".war" extension is used as the path.
ホストの appBaseディレクトリ配下の Webアプリケーションのディレクトリまたは
".war"ファイルをインストールします。
コンテキストパス が指定されていない場合は、
ディレクトリ名、またはWARファイル名から拡張子".war"を省いた名前がパスとして使われます。
以下の例では Tomcatサーバのホストの appBaseディレクトリの下の
foo ディレクトリにある Webアプリケーションが
/foo という Webアプリケーションコンテキストで配備されます。
コンテキストパス パラメータが指定されていないので、
コンテキストパスはデフォルトの
Webアプリケーションのディレクトリ名となっていることに注意して下さい。
以下の例では Tomcatサーバのホストの appBaseディレクトリにある
bar.war という".war"ファイルが /bartoo
という Webアプリケーションコンテキストで配備されます。
 |  |  |
 |
コンテキストパス (省略可): /bartoo
WARファイル又はディレクトリのURL: bar.war
|  |
 |  |  |
Deploy using a Context configuration ".xml" file
コンテキスト設定".xml"ファイルを使った配備
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 Context Path
is not used when installing a web application using a context ".xml"
configuration file.
ホストの deployXML フラグが true の場合、コンテキスト設定
".xml"ファイルと、オプションで ".war"ファイルまたは
Webアプリケーションディレクトリを使って
Webアプリケーションをインストールできます。
コンテキスト設定".xml"ファイルを使って
Webアプリケーションをインストールする際には コンテキストパス
は使われません。
コンテキスト設定".xml"ファイルには、Tomcat の
server.xml で設定するのと同じように
妥当な XML を記述できます。Windows 上で実行される Tomcat の例を示します。
 |  |  |
 |
<Context path="/foobar" docBase="C:\path\to\application\foobar"
debug="0">
<!-- Link to the user database we will get roles from -->
<ResourceLink name="users" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
</Context>
|  |
 |  |  |
Use of the WAR or Directory URL is optional. When used
to select a web application ".war" file or directory it overrides any
docBase configured in the context configuration ".xml" file.
WARファイル又はディレクトリのURL: はオプションです。
Webアプリケーションの ".war"ファイルまたはディレクトリを選択するのに使うと、
コンテキスト設定".xml"ファイルで設定された docBase はすべて上書きされます。
Windows 上で実行される Tomcat 用のコンテキスト設定".xml"
ファイルを使ってアプリケーションをインストールする例を示します。
 |  |  |
 |
XML設定ファイルのURL: file:C:/path/to/context.xml
|  |
 |  |  |
(Unix 上で実行される Tomcat) サーバ上のコンテキスト設定
".xml"ファイルと Webアプリケーション
".war"ファイルをインストールする例を示します。
 |  |  |
 |
XML設定ファイルのURL: file:/path/to/context.xml
WARファイル又はディレクトリのURL: jar:file:/path/to/bar.war!/
|  |
 |  |  |