3 Replies Latest reply on Nov 7, 2003 9:02 AM by Noel Rocher

    connection refused

    Noel Rocher Apprentice


      1) my server config:
      JBoss 3.2.1
      linux mandrake 9.1 enterprise (kernel 2.4.21smp)
      sub jdk 1.4.2-b28

      2) firewall
      allow 80 8080 443 8443 1099 4444 <--- (is this latter useful for rmi ?)

      3) my computer w2k jdk1.4.2 with jboss 3.2.1 and a web application that will invoke Stateless EJB from the server described in 1).

      4) I've read the topic http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= it is recommended to check the /etc/hosts file. In my case it is OK.

      ===> the webapp in my computer still have the connection refused exception :

      15:00:31,312 ERROR [STDERR] javax.naming.CommunicationException. Root exception is
      15:00:31,312 ERROR [STDERR] java.rmi.ConnectException: Connection refused to host: it's a fake address but is correct in the original message; nested exception is:
      java.net.ConnectException: Connection refused: connect
      15:00:31,312 ERROR [STDERR] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
      15:00:31,312 ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
      15:00:31,312 ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
      15:00:31,312 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
      15:00:31,312 ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      15:00:31,312 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)

      Any clue ?