Security role to user/group mapping: Error ADMA0014E: No virtual host specified

喜你入骨 提交于 2019-12-24 07:52:51

问题


When trying to save via OK Button, I'm getting this error and WebSphere is not saving it. How can I fix that?

EDIT: This is the error message I'm trying to resolve with the configuration in 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

回答1:


@DYangu's link to IBM pointed me in the right direction. When installing via wsadmin, it appears that the ibm-web-bnd.xml file is created automatically. If trying to install the application from eclipse/RAD, however, the file is not created.

What I did to resolve was create the above named file in my web application project (war) under WEB-INF folder:

<?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>

After doing this, I was able to successfully map the security role to the module.




回答2:


I faced a similar problem. My war files had the following two files missing inside war/WEB-INF folder

  • ibm-web-bnd.xml
  • ibm-web-ext.xml

Using the option of Generate Default Binding while installing WAR solved the issue for me.



来源:https://stackoverflow.com/questions/37545444/security-role-to-user-group-mapping-error-adma0014e-no-virtual-host-specified

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!