1. 程式人生 > >openfire報錯及處理方法

openfire報錯及處理方法

一、openfire配置完,執行時控制檯報如下錯誤:


一大堆東西,比較有用的就是XML properties file does not exist:openfire.xml

這說明Openfire的Home沒有設定或者設定不正確

選中專案,點選run -> run configurations;

Arguments標籤


VM arguments中填入-DopenfireHome="${workspace_loc:openfire}/target/openfire"其中第一個openfire是你的專案名,如果你的專案名叫openfirexxoo,這裡就填

-DopenfireHome="${workspace_loc:openfirexxoo}/target/openfire"

二、可以正常執行,但是執行後訪問http://127.0.0.1:9090時:


控制檯報錯:


解決方法:

複製openfire\src\resources\jar下admin-sidebar.xml檔案到

openfire\bin下

重啟openfire就可以了

2015-07-02  修改

在部署openfire3.10.2時發現openfire目錄下沒有bin資料夾,新的解決方法如下:

配置openfire的Run Configurations中的Classpath時,配置如下:


修改為此配置可以順利部署