當您手動部署「遠端服務」應用程式,且使用 WebSphere® Application Server 8 時,您必須將 com.ibm.ws.classloader.encodeResourceURLs 內容設為 false。
關於這項作業
WebSphere Application Server 8 會編碼 URL,這讓「
Rational® Publishing Engine Web 服務」應用程式無法讀取它們。當進行 URL 編碼時,用戶端應用程式無法連接到遠端服務應用程式,因此,也無法順利執行遠端文件產生。
如果要防止
WebSphere Application Server 8 進行遠端服務 URL 的編碼,請設定
com.ibm.ws.classloader.encodeResourceURLs 內容。
程序
- 在瀏覽器中開啟管理主控台。 範例:http://server:port/ibm/console/logon.jsp
- 展開。
- 按一下 WebSphere Application Server。
- 按一下 server_name 來開啟伺服器內容。
- 在「伺服器基礎架構」區段中,展開 Java 和程序管理。
- 按一下程序定義。
- 在「其他內容」區段中,按一下 Java 虛擬機器。
- 按一下新建來新增編碼旗標:
- 名稱:com.ibm.ws.classloader.encodeResourceURLs
- 值:false
按一下確定。
- 重新啟動「遠端服務」應用程式。