2016-05-31 121 views
1

當嘗試通過確定按鈕進行保存時,出現此錯誤,WebSphere未保存它。我該如何解決這個問題?對用戶/組映射的安全角色:錯誤ADMA0014E:未指定虛擬主機

enter image description here

編輯:這是我想用WebSphere配置,以解決該錯誤消息:

[6/20/16 10:46:34:524 CEST] 00000034 WebCollaborat A SECJ0129E: Authorization failed for user TUZRS01:customRealm while invoking GET on null:/TestProject/, Authorization failed, Not granted any of the required roles: User 
+0

你試過嗎? http://www-01.ibm.com/support/docview.wss?uid=swg21643203 – DYangu

+0

這很奇怪。我建議從服務器上刪除應用程序,重新啓動服務器並再次添加應用程序。 – Gas

+0

這沒有幫助不幸。你有什麼其他的建議? – Marco

回答

0

@ DYangu的鏈接IBM我指出了正確的方向。通過wsadmin進行安裝時,看起來ibm-web-bnd.xml文件是自動創建的。但是,如果試圖從eclipse/RAD安裝應用程序,則不會創建該文件。

我做了什麼來解決是建立在WEB-INF文件夾在我的Web應用程序項目(戰爭)上述文件名爲:

<?xml version="1.0" encoding="UTF-8"?> 
<web-bnd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://websphere.ibm.com/xml/ns/javaee" 
     xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-bnd_1_0.xsd" version="1.0"> 
    <virtual-host name="default_host"/> 
</web-bnd> 

後這樣做,我能安全角色成功地映射到該模塊。