• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Facibg problem in connecting from java IDL Corba Server from Client running in Websphere

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help very urgent..

I am tryin to connect to java IDL corba server runing on my local machine in Windows from java IDL Client which is deployed on Websphere and I am getting below error in Websphere logs.However all works fine If my client is in Windows as well.

[5/23/10 15:10:11:415 IST] 0000009a SystemOut O 26......................................
[5/23/10 15:10:11:415 IST] 0000009a SystemOut O Exception...............................org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
[5/23/10 15:10:11:415 IST] 0000009a SystemOut O org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:85)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_str(_NamingContextStub.java:1215)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.xxx.yyy.aaa.NetMFOSMod.NetMFOSIfClient.check(NetMFOSIfClient.java:77)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.xxx.yyy.sim_mch.sim_ejbs.SIM_MCH_ListenerBean.submitXMLRequest_Telcordia(SIM_MCH_ListenerBean.java:86)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.xxx.yyy.sim_mch.sim_ejbs.EJSRemoteStatefulSIM_MCH_Listener_ed4c8247.submitXMLRequest_Telcordia(Unknown Source)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.amdocs.mnp.sim_mch.sim_ejbs._EJSRemoteStatefulSIM_MCH_Listener_ed4c8247_Tie.submitXMLRequest_Telcordia(_EJSRemoteStatefulSIM_MCH_Listener_ed4c8247_Tie.java:161)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.xxx.yyy..sim_mch.sim_ejbs._EJSRemoteStatefulSIM_MCH_Listener_ed4c8247_Tie._invoke(_EJSRemoteStatefulSIM_MCH_Listener_ed4c8247_Tie.java:102)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:613)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:466)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.rmi.iiop.ORB.process(ORB.java:503)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.CORBA.iiop.ORB.process(ORB.java:1552)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2673)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2551)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
[5/23/10 15:10:11:446 IST] 0000009a SystemOut O at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)



here is snippet of my Cleint and sever code.
ORB orb = ORB.init(args, props);
System.out.println("3......................................");
// get the root naming context
org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
System.out.println("4......................................");
// Use NamingContextExt instead of NamingContext. This is part of the Interoperable naming Service.
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
System.out.println("5......................................" + ncRef.toString());
// resolve the Object Reference in Naming
String name = "NetMFOSIf";
System.out.println("55.....................................******************************" + ncRef.resolve_str(name));
netMFOSIf = NetMFOSIfHelper.narrow(ncRef.resolve_str(name));
System.out.println("6......................................");
_log.info("Obtained a handle on server object: " + netMFOSIf);


Sever code

public static void main(String args[]) {
try {
// create and initialize the ORB
ORB orb = ORB.init(args, null);

// get reference to rootpoa & activate the POAManager
POA rootpoa = POAHelper.narrow(orb
.resolve_initial_references("RootPOA"));
rootpoa.the_POAManager().activate();

// create servant and register it with the ORB
NetMFOSIfServant netMFOSIfServant = new NetMFOSIfServant();
netMFOSIfServant.setORB(orb);

// get object reference from the servant
org.omg.CORBA.Object ref = rootpoa
.servant_to_reference(netMFOSIfServant);
NetMFOSIf href = NetMFOSIfHelper.narrow(ref);

// get the root naming context
org.omg.CORBA.Object objRef = orb
.resolve_initial_references("NameService");
// Use NamingContextExt which is part of the Interoperable
// Naming Service (INS) specification.
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);

// bind the Object Reference in Naming
String name = "NetMFOSIf";
NameComponent path[] = ncRef.to_name(name);
ncRef.rebind(path, href);

System.out.println("NetMFOSIfServer ready and waiting ...");

// wait for invocations from clients
orb.run();
}

 
reply
    Bookmark Topic Watch Topic
  • New Topic