Im trying to create a c++ server. Im using the schedule_Mgmt IDL , where module-schedule_Mgmt and i hav 3 interfaces , 1-config , 2-Listener, 3-MessageServer
the following is my server code :
this is the following error message i get
CORBA exception: NotFound (IDL:omg.org/CosNaming/NamingContext/NotFound:1.0)
i dont know where im wrong
any suggestions ??
Thank You
vishy
What does your command-line look like when you invoke this program?
In my experience, this error occurs when the name service cannot be found. With most ORBs, you need to pass such information to the program either through environment variables or the command-line. Is the CORBA name service running? Are you passing location of the name service to the program?
Im using Tao-Ace ORB , My NameService is up and Running. Im able to get my server running if i add only the config interface , if i add the other 2 interfaces , my server throws the above error.
1 2 3 4 5 6 7 8 9 10 11 12 13
# load environment
cd /cc/smc3/ss_pool4/elem_level_mgmt/tools/Schedule_Mgmt/Schedule_Mgmt/src
# definitions for name service
PROTO=iiop
PORT=5341
echo "using $PROTO://172.21.132.249:$PORT" >&2
echo "$PROTO:172.21.132.249:$PORT" >~/C++/vishynew/Schedule_Mgmt/src/nameserv
exec /opt/java1.4/jre/bin/tnameserv -ORBInitialPort $PORT
thats my name service start script, im using a java client n a c++ server.