I am having a problem connecting to a JBoss server running Sun's 1.4.0
under Linux.  I cannot do JNDI lookups from a remote client.  The client
is configured correctly, as it can see other JBoss servers (running
under windows or solaris), and it can see the Linux server when I use
the -Djava.rmi.server.hostname=<myHostName> argument when starting
JBoss.  (See remote client stack trace below)
        I read recently in the forums that this was a problem with the setup of
the OS that the server was running on.  The post didn't happen to say
what is wrong with the setup though.  It appears that the client is
connecting to the server, and the server is telling the client to look
to localhost:1099 to get JNDI references.  Of course this won't work
because the client looking to localhost will look to itself(127.0.0.1). 
Can anyone help me understand why my server thinks that it should tell
clients that it's ip is 127.0.0.1 and not 10.0.0.15.  Any help would be
appreciated.  I know that I can use the
-Djava.rmi.server.hostname=<myHostName>, but I would like to know what
is wrong with my Linux setup that causes this.  Thanks.

-Jake Meier



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
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
    at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
    at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
    at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:445)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at org.testpackage.Lookerupper(Lookerupper.java:36)
    at org.testpackage.Tester.run(Tester.java:87)
Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
    at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
    at java.net.Socket.connect(Socket.java:425)
    at java.net.Socket.connect(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:290)
    at java.net.Socket.<init>(Socket.java:118)
    at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
    at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:122)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
    ... 9 more


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to