0

我已经按照安装说明进行了多次梳理,但我仍然无法确定为什么我无法解析 NameService。我运行了omniNames 服务,但是当我运行omniEvents 时,我得到以下信息

omniEvents: [32190]: Warning - failed to resolve initial reference 'NameService'. Exception NO_RESOURCES

当我尝试在 IDE 的沙盒中连接时,我收到了同样的错误消息,但我仍然能够在 IDE 沙盒中运行组件并连接它们。

我运行 nameclt list 并收到以下输出

Cannot resolve the root context. Have you set up the configuration file properly?

我的配置文件包含以下内容

InetRef = NameService=corbaname::127.0.0.1
InetRef = EventService=corbaloc::127.0.0.1:11169/omniEvents

我还验证了服务正在使用 netstat 在正确的端口上启动。

我缺少什么才能连接到名称服务?

4

1 回答 1

2

看来您的错误可能是由于 /etc/omniORB.cfg 中的拼写错误。在您的示例中,当它应该是“InitRef”时使用“InetRef”。

仔细检查设置,然后重新启动omniNames 和omniEvents 并再次尝试nameclt。如果您收到如下错误:

$ nameclt list
Caught a TRANSIENT exception when trying to validate the type of the 
NamingContext. Is the naming service running?

仔细检查omniNames 是否确实在运行(即ps -ef | grep omniNames)。

于 2013-04-25T21:38:58.560 回答