wsadmin コマンド・プロンプトで、コマンド構文を入力します。
以下に構文の例を示します。
$AdminApp update isclite modulefile {
-operation add
-contents path_to_war
-contenturi war_filename
-custom paavalidation=true -usedefaultbindings
-contextroot /context
-MapWebModToVH {{.* .* admin_host}}}
注: -contents および -contenturi の値は大文字小文字の区別があり、また、デプロイする War ファイル名と一致している必要があります。
オプション・カスタム paavalidation=true はオプションです。
例として、Windows マシンにページ・レイアウト・サンプルをデプロイする場合、コマンドは以下のようです。
$AdminApp update isclite modulefile {
-operation add
-contents C://WebSphere//AppServer//systemApps//isclite.ear//pagelayout.war
-contenturi pagelayout.war
-custom paavalidation=true -usedefaultbindings
-contextroot /ibm/pagelayout
-MapWebModToVH {{.* .* admin_host}}}
デプロイメントが正常な場合は、以下のメッセージが表示されます。
Update of isclite has started.
ADMA5009I: An application archive is extracted at D:¥IBM¥WebSphere_63¥AppServer¥
profiles¥AppSrv01¥wstemp¥wstemp¥app_10793d84b8e¥ext¥pagelayout.war
ADMA5064I: FileMergeTask completed successfully for isclite.
ADMA5005I: The application isclite is configured in the WebSphere Application Se
rver repository.
ADMA5005I: The application isclite is configured in the WebSphere Application Se
rver repository.
ADMA5110I: The application isclite is installed as a hidden application and will
not be exposed via administrative interfaces such as GUI client, wsadmin or MBe
an Java API. In order to perform management operations on this application, the
application name must be known.
CWLAA10001I: The Integrated Solutions Console module was deployed successfully.
ADMA5005I: The application isclite is configured in the WebSphere Application Se
rver repository.
ADMA5011I: The cleanup of the temp directory for application isclite is complete
.
Update of isclite has ended.