移轉至 Rational Application Developer 6.0 版中的入口網站工具

Portal Toolkit 5.0.2.2 版專案會藉由移轉 Portal Toolkit 工作區,或從 SCM(原始碼管理)系統載入專案,或利用專案交換特性匯入專案,而自動移轉至 Rational® Application Developer 6.0 版入口網站工具。如果您要移轉舊版的 Portal Toolkit,您必須將 Portlet 專案匯出至 WAR 檔,再將 WAR 檔匯入 Rational Application Developer 6.0 版的入口網站工具中。

在移轉入口網站應用程式之前,您必須先安裝 Rational Application Developer 6.0 版的入口網站工具特性。請參閱安裝手冊

註: 不支援 Portlet 專案與舊版相容。
只支援利用 WebSphere® Studio 5.1.2 版在 Portal Toolkit 5.0.2.2 版中建立的專案進行自動移轉。 請參閱從 WebSphere Studio 5.1、5.1.1 或 5.1.2 移轉,以取得移轉的詳細資料。

如果您的 Portlet 專案關聯於某個企業應用程式專案,您必須在 EAR 專案上設定適當的目標伺服器。 您可以在伺服器內容頁面(內容 > 伺服器)中設定目標伺服器。

在 Portal Toolkit 5.0.2.2 版專案的移轉期間,會進行一些其他變更:
  • 如果沒有設定為專案的目標伺服器,則這個目標伺服器便會設為 WebSphere Portal 5.0 版。
  • 更正 Portlet 建置路徑
  • 新增 Portlet 專案本質。

如果您要移轉舊版的 Portal Toolkit,您必須依照下列方式,將 Portlet 專案手動移轉至 Rational Application Developer 6.0 版的入口網站工具:

  1. 將現有的專案匯出至 WAR 檔: 在舊版 Portal Toolkit 中,將每個專案匯出到 WAR 檔以及程式檔。
    1. 用滑鼠右鍵按一下專案,選取匯出
    2. 選取 WAR 檔匯出程式檔,再按一下完成
  2. 匯入 Portlet WAR 檔:
    1. Rational Application Developer 6.0 版的入口網站工具中,建立新的空白 Portlet 專案。
      1. 選取檔案 > 新建 > 專案 > Portal > Portlet 專案或 Portlet 專案 (JSR 168)
      2. 取消選取建立 Portlet
      3. 按一下顯示進階
      4. 如果您在匯入 WebSphere Portal 4.2 Portlet,請選取 2.2 作為 Servlet 版本。
      5. 選取 WebSphere Portal 5.0 版作為目標伺服器,再按一下完成
    2. 將 WAR 檔匯入這個新的空白 Portlet 專案。
      1. 選取匯入
      2. 選取 WAR 檔,指定您在上面匯出的 WAR 檔(在舊版中將專案匯出至 WAR 檔)。
      3. 選取新的空白 Portlet 專案。
      4. 選取改寫現有的資源,但不發出警告
      5. 選取改寫時刪除專案
  3. 刪除 TLD 檔:

    如果專案中有 Portlet TLD 檔,建議您刪除它。 否則,當您重新建置專案時,會出現一則警告訊息。 留下它可能會在 Portlet 專案部署到 WebSphere Portal 且 Portlet 的 TLD 檔與伺服器中的檔案不同時造成問題。

  4. 如果您移轉 WebSphere Portal 4.2 Portlet,您必須將這個移轉的 Portlet 專案移轉至 WebSphere Portal 5.x。
如果需要將 WebSphere Portal 4.2 版 Portlet 移轉至 5.x 版的相關資訊,請參閱將 WebSphere Portal 4.2 版 Portlet 移轉至 5.x 版

如果需要移轉 Portlet 專案中之 Faces 資源的相關資訊,請參閱移轉 Portlet 專案中的 Faces 資源

相關工作
將 WebSphere Portal 4.2 版 Portlet 移轉至 5.x 版
移轉 Portlet 專案中的 Faces 資源
從 WebSphere Studio 5.1、5.1.1 或 5.1.2 移轉
相關參考
WebSphere 測試環境的變更

(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.