Sun Java System Application Server 9.1 Update 1-9.1 Update 2 版本說明

AS 9.1 IFR︰Web UI 認證失敗 (6569813)

說明

升級 Application Server 之後,<jsp:forward> 標記無法在 Authenticate.jsp 中按預期執行。<jsp:forward> 呼叫會在伺服器記錄中產生錯誤,並且在 Web UI 上顯示空白頁面。問題在於 Authenticate.jsp 中的 <jsp:forward> 需要一個類似 <jsp:forward page="${redirectPage}"/> 的頁面屬性,但傳送的值是類似 /registry/thin/{pagename}.jsp 的相對路徑,即使 Authenticate.jsp 是純 JSP 頁面,此相對路徑也不起作用。

解決方案

完成 Application Server 升級之後,使用 asadmin 工具執行以下指令以設定 domain.xml 中的 <auth-realm>

  1. 轉至 as-install/bin 並執行下列指令:


    ./asadmin delete-auth-realm --host localhost --port 6489 certificate

    將移除舊的 auth-realm 憑證 (如果存在)。

  2. 執行以下指令︰


    ./asadmin create-auth-realm --terse=false --echo=true --interactive=true \
    --user admin --host localhost --port 6489 --classname \
    com.sun.enterprise.security.auth.realm.certificate.CertificateRealm \
    --property assign-groups=have.client.cert  certificate

    將建立具有 assign-groups 特性的新 <auth-realm>

  3. 停止並重新啟動 Application Server registry 網域。