Hi,
check your network configuration on machine B, is there a default gateway
configured? are there two network interfaces in either of the machines?
Burkhard
----- Original Message -----
From: "Liang Sun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 7:51 AM
Subject: [JBoss-user] cannot call JBoss interest example ejb from another
machine
> Hi,
>
> I've setup 2 machines A and B with the interest example from JBoss
> website. A is my client machine. B is the JBoss server hosting the
> interest ejb. The problem is that I can't call the ejb on the B machine
> using "ant intro-interest-client" from A. The only way I can make it to
> work is to execute "ant intro-interest-client" on B. It seems that the
> JBoss server is refusing connection from remote machines for JNDI lookup.
>
> I changed the resources/jndi.properties file on the A machine to point to
> the JBoss server (B machine) hosting the interest ejb jar:
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=192.168.0.166:1099
> java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
>
> Then I execute intro-interest-client in the build directory. It gave me
> javax.naming.CommunicationException. I thought it could be because it's
> looking at the wrong machine. So I tested by changing the jndi.properties
> file to point to an IP addres not in used and it gave
> javax.naming.ServiceUnavailableException which is correct.
>
> The error is as follows. The puzzling thing is that how come it says my IP
> address is 10.0.0.1 ?? Anyone can shed some light on this ? Is there any
> security settings in JBoss that I must configure to allow remote machine
> to invoke my ejb ?
>
> javax.naming.CommunicationException. Root exception is
> java.rmi.ConnectExceptio
> n: Connection refused to host: 10.0.0.1; nested exception is:
> java.net.ConnectException: Connection refused: no further
> information
> java.net.ConnectException: Connection refused: no further information
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
> at java.net.Socket.<init>(Socket.java:273)
> at java.net.Socket.<init>(Socket.java:100)
> at
> sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
> SocketFactory.java:25)
> at
> sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
> SocketFactory.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.invoke(UnicastRef.java:83)
> at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
> at javax.naming.InitialContext.lookup(InitialContext.java:350)
> at meow.main(meow.java:58)
>
> Regards,
> Liang Sun
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user