我正在尝试使用 oracle 的 OWSM 来保护我的应用程序。我有脚本来创建策略和身份验证器。当我尝试运行这些脚本时,它在第一行失败,即
beginRepositorySession()
我收到以下错误:
"The MBean ,@ oracle.wsm:*,name=WSMDocumentManager,type=Repository was not found"
经过一些链接后,我发现当我尝试从错误的位置执行 wlst.sh 时会发生此错误。但我正在从 Oracle_common 执行它,但我仍然收到此错误。
任何想法..为什么会发生这种情况?这是一些设置问题吗?或者我需要在执行此beginRepositorySession之前添加一些代码?
我的 wlst.sh 位置是
$ORACLE_MIDDLEWARE/oracle_common/common/bin/wlst.sh
谢谢你。
完整的异常跟踪:
wls:/myOWSM/serverConfig> beginRepositorySession()
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)
Traceback (innermost last):
File "<console>", line 1, in ?
File "$ORACLE_MIDDLEWARE/oracle_common/common/wlst/wsmManage.py", line 172, in beginRepositorySession
File "$ORACLE_MIDDLEWARE/oracle_common/common/wlst/lib/ora_util.py", line 51, in raiseScriptingException
OracleScriptingException: The MBean oracle.wsm:*,name=WSMDocumentManager,type=Repository was not found.