2 Replies Latest reply on Oct 17, 2006 2:48 AM by martacv

    problem with connecting to jboss through Internet

    martacv

      Hi, if I connect to jboss through a LAN works perfectly, but I do it through Internet leaves the following error:

      javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 192.168.1.10; nested exception is:
      java.net.ConnectException: Connection refused: connect]
      Caused by: java.rmi.ConnectException: Connection refused to host: 192.168.1.10; nested exception is:
      java.net.ConnectException: Connection refused: connect
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
      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:94)
      at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
      ... 10 more
      Caused by: java.net.ConnectException: Connection refused: connect
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.checkConnector(RMIMasterSocketFactory.java:309)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:174)
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
      ... 15 more

      Why?

      all the ports are open. My chain of connection is the following one:

      InitialContext ctx = null;
      Properties env = new Properties();
      env.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
      env.setProperty("java.naming.provider.url", "xxx.xxx.xxx.xxx:1099");
      env.setPropert("java.naming.factory.url.pkgs", "org.jboss.naming");
      ctx = new InitialContext(env);

      xxx.xxx.xxx.xxx = IP