我已经按照安装说明进行了多次仔细检查,但仍然无法确定无法解析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验证了服务是在正确的端口上启动的。
要连接到名称服务,我会错过什么?
发布于 2013-04-26 05:38:59
您的错误可能是由于/etc/omniORB.cfg中的拼写错误造成的。在您的示例中,您使用了"InetRef“,而它应该是"InitRef”。
仔细检查设置,然后重新启动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)。
https://stackoverflow.com/questions/16222968
复制相似问题