Dear all,
I downloaded the J2SDKEE and installed it.
System: NT 4.0, SP5 JDK 1.3
I ran the sample and it works.
Now I try to run the sample with RMI-IIOP (I saw at deploytime it says
something like
Generating RMI-IIOP)
But it doesn't work
I modified the client only.
Here is the client I use:
import javax.naming.*;
import java.util.Properties;
import java.io.*;

public class ClientIIOP
{
    public static void main (String[] args)
    {
      Properties p = System.getProperties();
      p.put("java.naming.factory.initial",
"com.sun.jndi.cosnaming.CNCtxFactory");
      p.put("org.omg.CORBA.ORBInitialPort", "900");
      System.setProperties(p);

  try
     {
   Context initial = new InitialContext (p);
   Object objref = initial.lookup ("HelloWorldStateless");

   HelloWorldHome home = (HelloWorldHome)
javax.rmi.PortableRemoteObject.narrow (objref, HelloWorldHome.class);

   HelloWorldRemote hw = home.create ();

   System.out.println (hw.sayHi ("Kay"));
   hw.remove ();

     }
  catch (Exception ex)
     {
   System.err.println ("Caught an unexpected exception!");
   ex.printStackTrace ();
     }
    }
}


And here is the error message:
Caught an unexpected exception!
javax.naming.CommunicationException: Cannot connect to ORB.  Root
exception is o
rg.omg.CORBA.COMM_FAILURE:   minor code: 1398079490  completed: No
        at
com.sun.corba.se.internal.iiop.IIOPConnection.writeLock(Unknown Sourc
e)
        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 Sourc
e)
        at com.sun.corba.se.internal.corba.ClientDelegate.invoke(Unknown
Source)

        at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve(Unknown S
ource)
        at
com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialRefe
rences(Unknown Source)
        at
com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_r
eferences(Unknown Source)
        at
com.sun.corba.se.internal.corba.ORB.resolve_initial_references(Unknow
n Source)
        at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(Unknown
Source)
        at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(Unknown
Source)
        at com.sun.jndi.cosnaming.CNCtx.<init>(Unknown Source)
        at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(Unknown
Source)

        at javax.naming.spi.NamingManager.getInitialContext(Unknown
Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at ClientIIOP.main(ClientIIOP.java:16)


--
---------------------------------------------------------------
Kay Schulz              Program Management
BROKAT Infosystems AG   Voice:  (+49)711-78844 216
Industriestr. 3         Fax:    (+49)711-78844 779
70565 Stuttgart         Germany               \|/
E-Mail: [EMAIL PROTECTED]                /'~'\
Homepage: http://www.brokat.com/            ( o o )
----------------------------------------oOOO--(_)--OOOo-

The other day a woman came up to me and said, "Didn't I see you on
television?" I said, "I don't know. You can't see out the other way."

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to