適用於 Microsoft Windows 的 Sun Java System Application Server Enterprise Edition 8.2 版本說明

安裝

本節說明已知的安裝問題以及相關的解決方案。

適用於最小 Application Server 8.x 負載平衡程式的 Java Enterprise System 5 安裝程式無法正確安裝 (ID 6478047)

無法透過 Java ES 5 安裝程式配置 Apache 和 IIS。您需要在 Windows 平台上手動配置 Apache 和 IIS。

解決方案

若要配置負載平衡程式 Apache 或 IIS,請遵循下列步驟。

    配置 Apache 2.x:

  1. 安裝 Apache 2.x。

    Apache 會安裝到 APDIR=C:\Apache2\Apache2 目錄中。

  2. 使用最小安裝來安裝 JES5。

    取消選取負載平衡程式以外的所有元件。Java ES 5 會安裝到 JES5DIR=C:\Program Files\Sun\JavaES5 目錄中。

  3. Apache2 目錄中,建立 resourceerrorpages 目錄。

    mkdir %APDIR%\modules\resource

    mkdir %APDIR%\modules\errorpages

  4. 將資源檔案複製到 resource 目錄。

    cd %APDIR%\modules\resource

    copy %JES5DIR%\appserver\lib\webserver-plugin\windows\apache2\LBPlugin*.res .

  5. 將負載平衡程式 DLL 複製到 modules 目錄。

    cd %APDIR%\modules

    copy %JES5DIR%\appserver\lib\webserver-plugin\windows\apache2\mod_loadbalancer.dll .

  6. 將範本 errorpages 複製到 errorpages 目錄。

    cd %APDIR%\modules\errprpages

    copy %JES5DIR%appserver\lib\webserver-plugin\windows\iws\errorpages .

  7. 將負載平衡程式範本和其他 DTD 複製到 Apache config 目錄。

    cd %APDIR%\config

    copy %JES5DIR%\appserver\lib\install\templates\loadbalancer.xml.template .

    copy %JES5DIR%\appserver\lib\dtds\sun-loadbalancer* .

  8. 建立 httpd.conf 檔案的備份。

    cd %APDIR%\config

    copy httpd.conf httpd.conf.orig

  9. 編輯 httpd.conf 檔案。

    將以下幾行附加到 httpd.conf 檔案中:

    ##BEGIN EE LB Plugin Parameters
    LoadModule apachelbplugin_module modules/mod_loadbalancer.dll
    <IfModule mod_apache2lbplugin.cpp>
    		config-file "C:\Apache2\Apache2/conf/loadbalancer.xml"
    		locale en
    </IfModule>
    <VirtualHost 10.12.8.107>
    DocumentRoot "C:\Apache2\Apache2/htdocs"
    ServerName vm07
    </VirtualHost>
    ##END EE LB Plugin Parameters
  10. C:\Apache2\Apache2 替代為實際的 %APDIR% 目錄。

    另請更換 IP、ServerName 和 DocumentRoot 目錄。

  11. %APDIR% 中建立新的 sec_db_files 目錄。

    cd %APDIR%

    mkdir sec_db_files

  12. 將 NSS 金鑰庫複製到 %APDIR%\sec_db_files 目錄。

    cd %APDIR%\sec_db_files

    copy %JES5DIR%\appserver\lib\webserver-plugin\windows\iis\*.db .

  13. 將 PATH 設定為包括必要程式庫。

    前置以下額外的路徑:

    PATH %JES5DIR%\share\lib;%JES5DIR%\appserver\lib;%JES5DIR%\appserver\bin

  14. %JES5DIR% 替代為實際的 Java ES 5 目錄。

  15. 在系統環境中,增加值為 1 的 NSPR_NATIVE_THREADS_ONLY 變數。

  16. 重新啟動並測試 Apache 2 (在配置 loadbalancer.xml 之後)。

    配置 IIS LBPlugin:

  1. c:\inetpub\wwwroot 目錄中,建立 sun-passthrough 目錄。

    cd c:\inetpub\wwwroot

    mkdir sun-passthrough

  2. c:\inetpub\wwwroot\sun-passthrough 目錄中,建立 errorpagesresourcesec_db_files 目錄。

    cd c:\inetpub\wwwroot\sun-passthrough

    mkdir errorpages

    mkdir resources

    mkdir sec_db_files

  3. 將 DLL 檔案複製到 sun-passthrough 目錄。

    copy <as_install_dir>/appserver/lib/webserver-plugin/iis/*.dll c:\inetpub\wwwroot\sun-passthrough\

  4. 將 DTD 複製到 sun-passthrough 目錄。

    copy <as_install_dir>/appserver/lib/dtds/sun-loadbalancer*.dtd c:\inetpub\wwwroot\sun-passthrough\

  5. sun-passthrough.properties 檔案複製到 sun-passthrough 目錄。

    copy <as_install_dir>/appserver/lib/webserver-plugin/iis c:\inetpub\wwwroot\sun-passthrough\

  6. 將安全性 DB 檔案複製到 sun-passthrough 目錄。

    copy <as_install_dir>/appserver/lib/webserver-plugin/iis/*.db c:\inetpub\wwwroot\sun-passthrough\sec_db_files\

  7. 將資源檔案複製到 sun-passthrough 目錄。

    copy <as_install_dir>/appserver/lib/webserver-plugin/iws/*.res c:\inetpub\wwwroot\sun-passthrough\resource\

  8. 將錯誤頁面複製到 sun-passthrough 目錄。

    copy <as_install_dir>/appserver/lib/webserver-plugin/iws/errorpages/*.html c:\inetpub\wwwroot\sun-passthrough\errorpages\

  9. loadbalancer.xml.example 範本複製到 sun-passthrough 目錄。

    copy <as_install_dir>/appserver/lib/install/templates/loadbalancer.xml.example c:\inetpub\wwwroot\sun-passthrough\

  10. 編輯 sun-passthrough.properties 檔案。

    ##BEGIN EE LB Plugin Parameters
    log-file = C:\InetPub\wwwroot\sun-passthrough\lb.log
    ### The valid options for different logging levels are FATAL, SEVERE, WARNING, INFO and FINE.
    log-level = INFO
    lb-config-file = C:\InetPub\wwwroot\sun-passthrough\loadbalancer.xml
    ##END EE LB Plugin Parameters

備註 –

如果是配置 IIS6,請務必按照 AS82 文件中所述設定權限,並執行其他步驟。您可能還需要將 IIS6 隔離模式設定為與 IIS5 相容。


安裝期間需要建立 imq 目錄 (ID 6199697)

在 Windows 平台上,安裝 Application Server Enterprise Edition 之後,立即啟動 Message Queue 代理程式會失敗。此時會顯示錯誤訊息,表示目錄 drive:\as\domains\domain1\imq 不存在。

請注意,如果在啟動 domain1 之後啟動此代理程式,則會由 Application Server 建立此目錄並且不會發生此問題。

解決方案

  1. 在建立代理程式前建立 var_home_dir_location


    $imqbrokerd -varhome var_home_dir_location
    

    例如︰


    $imqbrokerd -varhome D:\as\domains\domain1\imq