必须通过编辑 IBM® Enterprise
Records REST 服务 web.xml 文件来为 Oracle WebLogic 配置 REST 服务。
过程
要为 Oracle WebLogic 配置 web.xml 文件,请执行下列操作:
- 转至 Application Engine 或 Workplace XT 安装位置的 WEB-INF 文件夹。 例如,C:\Program Files\IBM\FileNet\WebClient\WorkplaceXT\WEB-INF(在 Windows 上)。
- 将 weblogic.xml 文件复制到 IERRest_install_path\distribution\WEB-INF 目录,以替换此文件的任何现有实例。
- 转至 IERRest_install_path\distribution\WEB-INF 目录。
- 备份 web.xml 文件(如果尚未备份的话)。
- 使用首选编辑器来编辑 IBM Enterprise
Records REST 服务 web.xml 文件,并进行以下更改。
- 在第一个 <security-constraint> XML 元素(其中 <web-resource-collection>/<web-resource-name> XML 元素值为 Secured Resources)中,将现有 <role-name> 元素的值从 All
authenticated 更改为 *。
- 删除整个第二个 <security-constraint> XML 元素(其中 <web-resource-collection>/<web-resource-name> XML 元素值为 Unsecured Resources)。
- 同时删除 <security-role> XML 元素及其所有内容。
- 保存并关闭 web.xml 文件。