其他步驟:防止在 WebSphere Application Server 8 上進行 URL 編碼

當手動部署 Web 服務應用程式,且使用 WebSphere® Application Server 8 時,您必須將 com.ibm.ws.classloader.encodeResourceURLs 內容設為 false

關於這項作業

WebSphere Application Server 8 會進行 URL 編碼,使 Rational® Publishing EngineWeb 服務應用程式無法讀取它們。 當進行 URL 編碼時,用戶端應用程式無法連接到遠端服務應用程式,因此,也無法順利執行遠端文件產生。 如果要防止 WebSphere Application Server 8 進行遠端服務 URL 的編碼,請設定 com.ibm.ws.classloader.encodeResourceURLs 內容。

程序

  1. 在瀏覽器中開啟管理主控台。 範例:http://server:port/ibm/console/logon.jsp
  2. 展開伺服器 > 伺服器類型
  3. 按一下 WebSphere 應用程式伺服器
  4. 按一下 server_name 來開啟伺服器內容。
  5. 在「伺服器基礎架構」區段中,展開 Java 和程序管理
  6. 按一下程序定義
  7. 在「其他內容」區段中,按一下 Java 虛擬機器
  8. 按一下新建來新增編碼旗標:
    • 名稱:com.ibm.ws.classloader.encodeResourceURLs
    • 值:false
    按一下確定
  9. 重新啟動 Web 服務應用程式

意見