2016-04-28 43 views
0

我試圖將最新版本的MobileFirst Server 7.1安裝到WAS Liberty 8.5.5.9上,並且難以啓用已安裝的WAR的登錄。這是一個全新的安裝。在安裝MobileFirst Server之前安裝了adminCenter-1.0。如何正確配置WAS Liberty server.xml basicRegistry與MobileFirst Server和AdminCenter

This page描述了根本問題,但似乎在指令中缺少某些內容。所寫的說明對我來說是毫無意義的,因爲它用一個語句「移動」安裝過程中添加的內容,但在同一段中的另一句話中聲稱從server.xml中「刪除」它。

正如我已經解釋說明,我現在有不同的號不同basicRegistry內容如下:

<basicRegistry id="basic" realm="BasicRealm"> 
    <user name="admin" password="adminpwd" /> 
</basicRegistry> 

<!-- Declare the user registry for the Application Center. --> 
<basicRegistry id="applicationcenter-registry" realm="ApplicationCenter"> 
    <!-- The users defined here are members of group "appcentergroup", thus have role "appcenteradmin", and can therefore perform administrative tasks through the Application Center console. --> 
    <user name="appcenteradmin" password="admin"/> 
    <user name="demo" password="demo"/> 
    <group name="appcentergroup"> 
     <member name="appcenteradmin"/> 
     <member name="demo"/> 
    </group> 
</basicRegistry> 

但我沒有看到的是如何配合新applicationcenter的註冊表到MobileFirst應用中心。當然,這種配置不允許我登錄到WAS adminCenter或MobileFirst Application Center。它還會生成您期望的消息:

有多種可用的UserRegistry實施服務;系統無法確定使用哪一個。

什麼是正確的server.xml配置,允許我登錄到這兩個應用程序?

感謝, 約翰

回答

2

在server.xml中,只能有一個basicRegistry。該文件主要是告訴你的<basicRegistry id="applicationcenter-registry" realm="ApplicationCenter"> 裏面的內容複製到您的<basicRegistry id="basic" realm="BasicRealm">

然後取出<basicRegistry id="applicationcenter-registry" realm="ApplicationCenter"> 所以你只有一個basicRegistry,自己 <basicRegistry id="basic" realm="BasicRealm">,在server.xml。

檢查您的服務器日誌,看看是否有任何錯誤。如果存在與數據庫相關的錯誤,請確保您的數據庫可以訪問,並且已經以root/admin權限啓動。

0

我相信指令說你應該這樣做:

<basicRegistry id="basic" realm="BasicRealm"> 
    <user name="admin" password="adminpwd" /> 

    <!-- Declare the user registry for the Application Center. --> 
    <!-- The users defined here are members of group "appcentergroup", thus have role "appcenteradmin", and can therefore perform administrative tasks through the Application Center console. --> 
    <user name="appcenteradmin" password="admin"/> 
    <user name="demo" password="demo"/> 
    <group name="appcentergroup"> 
     <member name="appcenteradmin"/> 
     <member name="demo"/> 
    </group> 
</basicRegistry> 

也就是說,你應該有一個<basicRegistry>,它應該包含你的原始用戶/組(如果任何)以及Application Center的用戶/組。

+0

感謝Brett,但這是(除了管理員用戶在塊中的最後一個)與Mobilefirst服務器安裝過程在該塊中放置的相同之外。不幸的是,這種方法並不適用於我,因此導致我轉到上述文檔中的內容頁面。 –

相關問題