I am using JacORB with jdk1.3 on nt 4.0. My simple server is listed
below. When I run it it claims that it cannot resolve the name
"RootPOA" see trace back below. This code should work. So my question is
there some environmental problem. Something I missed in installing
JacORB.
Thanks in advance
trace back
org.omg.CORBA.COMM_FAILURE: minor code: 1398079490 completed: No
at
com.sun.corba.se.internal.iiop.IIOPConnection.writeLock(Unknown Source)
at com.sun.corba.se.internal.iiop.IIOPConnection.send(Unknown
Source)
at
com.sun.corba.se.internal.iiop.IIOPOutputStream.invoke(Unknown Source)
at
com.sun.corba.se.internal.iiop.ClientRequestImpl.invoke(Unknown Source)
at com.sun.corba.se.internal.corba.ClientDelegate.invoke(Unknown
Source)
at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve(Unknown
Source)
at
com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialReferences(Unknown
Source)
at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_references(Unknown
Source)
at
com.sun.corba.se.internal.corba.ORB.resolve_initial_references(Unknown
Source)
at Server.main(Server.java:13)
The source code for my sever:
import grid.*;
import java.io.*;
public class Server
{
public static void main( String[] args )
{
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null);
try
{
MyServerImpl srv = new MyServerImpl();
org.omg.CORBA.Object o =
orb.resolve_initial_references("RootPOA");
org.omg.PortableServer.POA poa =
org.omg.PortableServer.POAHelper.narrow(o);
poa.the_POAManager().activate();
poa.activate_object_with_id("SDRC/ms9/OI_Server".getBytes(),
srv);
o = poa.servant_to_reference(srv);
System.out.println(orb.object_to_string( o ) );
orb.run();
}
catch ( Exception e )
{
e.printStackTrace();
}
}
}
Perhaps JacORB has some documentation on this, I'm not sure. The release
notes for Orbix 2000 for Java, Orbacus, and Visibroker for Java all
demonstrate this, but they give the options for those ORBs, not for JacORB.
-B
"Albert Wehrman" <Albert....@sdrc.com> wrote in message
news:3A1403A7...@sdrc.com...