前のトピック: カスタム アプリケーションの展開アーキテクチャ次のトピック: カスタム アプリケーションの展開の確認


カスタム アプリケーション WAR ファイルの展開

カスタム アプリケーションを展開する方法

  1. 以下の場所に移動します。
    sample_app_installation_dir\sampleApplications
    
  2. アプリケーション サーバに customapp.war ファイルをコピーします。 たとえば、Apache Tomcat では、WAR ファイルをコピーする場所は以下のとおりです。
    application_server_home\webapps
    

    WAR ファイルを抽出して webapps フォルダに customapp という名前のフォルダを作成するために Apache Tomcat を再起動します。

    注: その他のサポートされているアプリケーション サーバに展開する方法については、ベンダーのドキュメントを参照してください。

  3. AFM ウィザードを実行した場所から以下の場所に customapp.properties ファイルをコピーします。
    AFM_HOME\conf\afm
    
  4. IBM WebSphere 6.1 にのみ適用可能)以下の手順に従って、WebSphere 6.1 に WAR ファイルを展開します。
    1. IBM WebSphere の管理コンソールにログインします。
    2. Applications]-[Install New Application]に移動します。
    3. How do you want to install the application]セクションで、[Show me all installation options and parameters]オプションを選択します。
    4. 次へ]をクリックします。
    5. [Preparing for the application installation]画面で、[Next]をクリックします。
    6. [Application Security Warning]画面で、[Continue]をクリックします。
    7. [Step 1: Select install options]画面で、[Precompile JavaServer Pages files]オプションを選択します。
    8. 次へ]をクリックします。
    9. [Step 2: Map modules to servers]画面で、[Next]をクリックします。
    10. [Step 3: Provide options to compile JSPs]画面で、[JDK Source level]カラムの値として「15」を入力します。
    11. 画面の指示に従って、展開を完了します。
  5. IBM WebSphere 6.1 にのみ適用可能) WAR ファイルを展開した後、以下の手順に従います。
    1. IBM WebSphere の管理コンソールにログインします。
    2. Applications]-[Enterprise Applications]-[WebSphere enterprise applications]に移動します。
    3. [WAR file]リンクをクリックします。
    4. Class loading and update detection]リンクをクリックします。
    5. Class loader order]セクションで、[Classes loaded with local class loader first]オプションを選択します。
    6. [WAR class loader policy]セクションで、[Single class loader for application]オプションを選択します。
    7. IBM WebSphere を再起動します。
  6. IBM WebSphere 7.0 にのみ適用可能) WAR ファイルを展開した後、以下の手順に従います。
    1. IBM WebSphere の管理コンソールにログインします。
    2. Applications]-[Application Types]-[WebSphere enterprise applications]に移動します。
    3. [WAR file]リンクをクリックします。
    4. Class loading and update detection]リンクをクリックします。
    5. Class loader order]セクションで、[Classes loaded with local class loader first (parent last)]オプションを選択します。
    6. [WAR class loader policy]セクションで、[Single class loader for application]オプションを選択します。
    7. IBM WebSphere を再起動します。