Sun OpenSSO Enterprise 8.0 版本說明

1977:WebSphere Application Server 6.1 上的 SAMLv2 範例 configure.jsp 檔案失敗

在 WebSphere Application Server 6.1 實例上,無法編譯 /sample/saml2/sp/configure.jsp /sample/saml2/idp/configure.jsp 檔案。configure.jsp 檔案需要 JDK 1.5,但在 WebSphere Application Server 6.1 上,JSP 檔案的 JDK 來源層級會設為 JDK 1.3。

解決方法:編輯 JSP 引擎配置參數,以將 JDK 來源層級設為 1.5:

  1. 開啟 WEB-INF/ibm-web-ext.xmi 檔案。

    JSP 引擎配置參數儲存在 WEB-INF/ibm-web-ext.xmi 檔案中的 Web 模組配置目錄或 Web 模組二進位目錄中:

    配置目錄。例如:

    {WAS_ROOT}/profiles/profilename/config/cells/cellname/applications/
    enterpriseappname/deployments/deployedname/webmodulename/

    二進位目錄,如果將應用程式部署至 WebSphere Application Server,並將「使用二進位」標幟設為。例如:

    {WAS_ROOT}/profiles/profilename/installedApps/nodename/
    enterpriseappname/webmodulename/
  2. 刪除 compileWithAssert 參數,方法是刪除檔案中的敘述,或在敘述前後加上註釋標記 (<!— –>)。

  3. 增加值為 15 的 jdkSourceLevel 參數。例如:

    <jspAttributes xmi:id="JSPAttribute_1" name="jdkSourceLevel" value="15"/>

    注意JSPAttribute_1 中的整數 (_1) 在檔案內必須是唯一的。

  4. 儲存 ibm-web-ext.xmi 檔案。

  5. 重新啟動應用程式。

如需 jdkSourceLevel 參數與其他 JSP 引擎配置參數的詳細資訊,請參閱:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.nd.doc/info/ae/ae/rweb_jspengine.html