2013-04-25 85 views
0

我按照安裝說明並用梳子多次掃描了它們,我仍然無法確定爲什麼我無法解析NameService。我有omniNames服務運行,但是當我運行omniEvents我得到解決初始引用'NameService'的問題

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

我收到此相同的錯誤消息,當我試圖在IDE中沙箱內連接之後,但我仍然能夠運行的組件和在IDE Sandbox中運行時連接它們。

我跑nameclt列表,並獲得以下輸出

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的。

我缺少什麼連接到名稱服務?

回答

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英法| grep的omniNames)。

+0

謝謝......錯過了錯字 – astaubin 2013-04-29 13:11:49