<br><font size=2 face="sans-serif">Fix up your omniORB.cfg file so that the name service is defined properly in the initial context... The section should look something like the following (of course your hostname/port may be different)</font>
<br>
<br><font size=2 face="sans-serif">############################################################################</font>
<br><font size=2 face="sans-serif"># InitRef</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># Specify the objects the ORB should return in response to calls to</font>
<br><font size=2 face="sans-serif"># resolve_initial_references.</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># There can be more than one configuration line defining InitRef.</font>
<br><font size=2 face="sans-serif"># Each line adds one initial reference to the ORB.</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># Here are some valid examples:</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># Specify the root context of the Naming Service. (Notice the end of line</font>
<br><font size=2 face="sans-serif"># continuation marker '\'</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># InitRef = NameService=IOR:010000002800000049444c3a6f6d672e6f72672f436f734\</font>
<br><font size=2 face="sans-serif">#e616d696e672f4e616d696e67436f6e746578743a312e300001000000000000002c000000010\</font>
<br><font size=2 face="sans-serif">#102000c0000003139322e3136382e312e3000f90a00000c000000349568c45cb1e6780000000\</font>
<br><font size=2 face="sans-serif">#100000000</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># Alternatively, and more cleanly, specify the Naming service with a</font>
<br><font size=2 face="sans-serif"># corbaname URI:</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif">InitRef = NameService=corbaname::ultra60</font>
<br><font size=2 face="sans-serif">#InitRef = NameService=corbaname::10.10.17.27</font>
<br><font size=2 face="sans-serif">#InitRef = NameService=corbaname::localhost</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># Specify the Trading service and the interface repository using corbaloc:</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># InitRef = TradingService=corbaloc:iiop:marrow:5009/MyObjectKey</font>
<br><font size=2 face="sans-serif"># = InterfaceRepository=corbaloc::1.2@marrow:5009/Intf</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># The default for the set of initial references is empty.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Renny Koshy<br>
President & CEO<br>
<br>
--------------------------------------------<br>
RUBIX Information Technologies, Inc.<br>
www.rubixinfotech.com</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>unixwrld <unixwrld@yahoo.com.ar></b></font>
<br><font size=1 face="sans-serif">Sent by: omniorb-list-bounces@omniorb-support.com</font>
<p><font size=1 face="sans-serif">11/08/2004 05:47 PM</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: omniorb-list@omniorb-support.com</font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Subject: [omniORB] NameService: eg3_impl.cc</font></table>
<br>
<br>
<br><font size=3 face="Times New Roman">Hello,</font>
<br><font size=3 face="Times New Roman">I'm using omniORB 4.0.5 for linux and I want to use omniName. I read the README.unix file and setting the enviroment. The omniName program start with no problems. Now, when I run eg3_impl sample, it returns System exception.</font>
<br><font size=3 face="Times New Roman"> </font>
<p><font size=2 face="Times New Roman">CosNaming::NamingContext_var rootContext;</font>
<p><font size=2 face="Times New Roman">CORBA::Object_var obj;</font>
<p><font size=2 face="Times New Roman">obj = orb->resolve_initial_references("NameService");</font>
<p><font size=2 face="Times New Roman">rootContext = CosNaming::NamingContext::_narrow(obj); // Here it send the system exception.</font>
<p><font size=2 face="Arial">What happen?</font>
<p><font size=3 face="Times New Roman">Correo Yahoo! - 6 MB, tecnología antispam ¡gratis! <br>
Suscribite ya http://correo.yahoo.com.ar/</font><font size=2 face="Courier New">_______________________________________________<br>
omniORB-list mailing list<br>
omniORB-list@omniorb-support.com<br>
http://www.omniorb-support.com/mailman/listinfo/omniorb-list<br>
</font>
<p>
<p>