将 Access Manager 配置为访问 AccessManager-base/SUNWam/samples/phase2/wsc 目录(Solaris 系统)或 AccessManager-base /identity/samples/phase2/wsc 目录(Linux 系统)下的 Web 服务范例后,查询“搜索服务”或修改“资源提供”会返回错误消息:“未找到资源提供”。
AccessManager-base 是基安装目录。Solaris 系统的默认基安装目录是 /opt,而 Linux 系统则是 /opt/sun。
解决方法:
转到以下范例目录:AccessManager-base /SUNWam/samples/phase2/wsc 目录(Solaris 系统)或 AccessManager-base/identity/samples/phase2/wsc 目录(Linux 系统)
在 index.jsp 文件中,搜索以下字符串:
com.sun.org.apache.xml.security.utils.XMLUtils.outputDOM
如果某行包含在上一步骤中找到的字符串,则在该行前插入以下新行:
com.sun.org.apache.xml.security.Init.init();
重新运行范例。(无需重新启动 Access Manager。)