Hi,
I wrote a simple test client that manipulates an entity bean deployed in
JBoss. I'll outline the scenarios:
- Win98 client -> Win98 server (same machine) works
- Linux client -> Linux server (same machine) works
- Linux client -> Win98 server works
- Win98 client -> Linux server does NOT work. The exception stacktrace given
is this
javax.naming.CommunicationException. Root exception is
java.rmi.ConnectException:
Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
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(Unknown Source)
at zhl.TestClient.main(TestClient.java:23)
It's a nested exception. From what I gather there is something preventing
JBoss running on the Linux machine from connection to itself. I'm not
connecting to 127.0.0.1 but to 192.168.1.* in our network. I haven't changed
the jndi.properties or jnp.properties. They are identical on both machines.
What could be causing this and what's the solution? I checked the mailing
list archives. I don't think there is a rogue jndi.properties in my
classpath that overrides the settings in my application.
Thanks
-Laurens
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user