為了省錢,只能通靈
- 把Cluster刪除
- 開啟要部屬的war包中的weblogic.xml檔案,像我的是在WEB-INF\weblogic.xml
<wls:session-descriptor>
<!-- for cluster -->
<persistent-store-type>memory</persistent-store-type>
</wls:session-descriptor>
persistent-store-type從replicated改為memory
此項不改會出現:
weblogic.management.DeploymentException: [HTTP Session:100039]Replicated HTTP sessions were specified for the Web application: xxx, but clustering was not enabled.
[HTTP Session:100039]Replicated HTTP sessions were specified for the Web application: xxx, but clustering was not enabled.
4. 登入至weblogic後台,選擇 服務\資料來源\DB\目標。把伺服器勾選起來,讓資料與服務可以串連在一起。
此項不改會出現:
Unable to access weblogic datasource from java with prefix jdbc
5. 重啟及部屬
若出現BEA-149231,這代表:
- weblogic控制台創建的連接工廠名字錯誤,程序包調用時無法識別
- 連接工廠創建後,沒有指定目標服務器,或者少指定目標節點
- 重啟節點沒有清理緩存
6. 清理緩存
- showdown project
- 至project/servers/server
- 執行rm -Rf tmp、rm -Rf stage
- 重啟project