I am sorta desparate here.

        I developed and deployed an ejb on Jonas and built a test client. I
ran the test client on the same machine as Jonas, and everything worked.

        Now I am trying to run the client on another machine, and it errors
out with rmi connection refused errors.

        I have tried following connect methods, all with identical results:

        Note, all start with InitialContext initialContext = new
InitialContext();

        Code 1)
        KeyMatrixDtdHome home = (KeyMatrixDtdHome)
initialContext.lookup(HOME);

        Code 2)
        KeyMatrixDtdHome home = (KeyMatrixDtdHome)
Naming.lookup("rmi://solaris3:9012/nw.ejb.pdo.dtd.keyMatrixDtd.KeyMatrixDtd"
);

        Code 3)
KeyMatrixDtdHome home = (KeyMatrixDtdHome)
                                PortableRemoteObject.narrow(
 
initialContext.lookup("nw.ejb.pdo.dtd.keyMatrixDtd.KeyMatrixDtd"),
 
KeyMatrixDtdHome.class);

        The client gets past the creation of the Home object, but when I
call create:

                                remote = (KeyMatrixDtd) home.create();

        It errors out with the following stack trace:

Exception in thread "main" java.rmi.RemoteException: Error getting bean :
com.novalogic.ejb.pdo.dtd.keyMatrixDtd.KeyMatrixDtdInt; nested exception is:
        java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
nested exception is:
        java.net.ConnectException: Connection refused
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested
exception is:
        java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:136)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
        at java.net.Socket.<init>(Socket.java:273)
        at java.net.Socket.<init>(Socket.java:100)
        at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketF
actory.java:25)
        at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketF
actory.java:120)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
        at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)
        at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
        at
com.novalogic.ejb.pdo.dtd.keyMatrixDtd.JOnASKeyMatrixDtdHome_Stub.create(JOn
ASKeyMatrixDtdHome_Stub.java:37)
        at
com.novalogic.ejb.pdo.dtd.keyMatrixDtd.KeyMatrixDtdInt.getRemoteEJB(KeyMatri
xDtdInt.java:76)
        at
com.novalogic.ejb.pdo.dtd.keyMatrixDtd.KeyMatrixDtdInt.insertKey(KeyMatrixDt
dInt.java:92)
        at com.novalogic.ejb.pdo.dtd.keyMatrixDtd.Test.<init>(Test.java:40)
        at com.novalogic.ejb.pdo.dtd.keyMatrixDtd.Test.main(Test.java:13)

Some things I noticed:

I put some debug lines in my JOnASKeyMatrixDtdHome_Stub class, and they
appear in the client's windows, as if it were running locally and not on the
Jonas server.

I run the Jonas server with a trace level of all, and it doesn't seem to get
any traffic.

JOnASKeyMatrixDtdHome is generated by GenIC, and the problem area looks
like:

                        System.out.println("IN
JOnASKeyMatrixDtdHome_Stub.java CREATE");
                System.out.println("HStub 0.5");
 dies here=>           java.rmi.server.RemoteCall call =
ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, \
interfaceHash);
                         System.out.println("HStub 1");
                this.invoke(call);
                System.out.println("HStub 2");
                com.novalogic.ejb.pdo.dtd.keyMatrixDtd.KeyMatrixDtd $result;
                System.out.println("HStub 3");

        It dies on the third line, and this looks supisciously like it is
using a local object instead of a remote one.

Any clues would be great. I have been trying all sorts of things and am
close to just trying another ejb server all together.

        Thank you all in advance,

Lucas McGregor([EMAIL PROTECTED])
NovaWorld Software Architect
--------------------------------
Java developers belong barefoot
and programming on Solaris!
--------------------------------

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to