10 Replies Latest reply on Apr 23, 2008 9:42 AM by alexsbe

    Can not get connection to server. Problem establishing socke

    alexsbe

      I have installed an EJB on a jboss 4.2.2 server (On a red hat distribution) It is correctly deployed.


      I have a remote server or client I always have this trace bellow :
      I start the server with run.sh -b 0.0.0.0, and-Djava.rmi.server.hostname=


      org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://127.0.0.1:3873/]
       at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:532)
       at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
       at org.jboss.remoting.Client.invoke(Client.java:1634)
       at org.jboss.remoting.Client.invoke(Client.java:548)
       at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
       at $Proxy0.login(Unknown Source)
       at com.sbe.poolstock.servlet.LoginServlet.login(LoginServlet.java:143)
       at com.sbe.poolstock.servlet.LoginServlet.service(LoginServlet.java:74)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at com.nexaweb.server.servlet.forwarder.RequestForwardingServiceImpl.forward(RequestForwardingServiceImpl.java:121)
       at com.nexaweb.server.protocol.HandleEventExecutor.executeCommand(HandleEventExecutor.java:72)
       at com.nexaweb.server.protocol.ServerProtocolExecutor.executeCommand(ServerProtocolExecutor.java:40)
       at com.nexaweb.protocol.ProtocolExecutorManager.executeCommand(ProtocolExecutorManager.java:116)
       at com.nexaweb.protocol.ProtocolNamespaceHandler.receiveDispatch(ProtocolNamespaceHandler.java:91)
       at com.nexaweb.server.protocol.ServerProtocolNamespaceHandler.receiveDispatch(ServerProtocolNamespaceHandler.java:96)
       at com.nexaweb.xml.NamespaceHandler.receiveDispatch(NamespaceHandler.java:109)
       at com.nexaweb.xml.NamespaceHandlerManager.dispatch(NamespaceHandlerManager.java:102)
       at com.nexaweb.xml.ParserImpl.parseFragment(ParserImpl.java:317)
       at com.nexaweb.xml.ParserImpl.parseDomTree(ParserImpl.java:283)
       at com.nexaweb.xml.ParserImpl.parseDomTree(ParserImpl.java:222)
       at com.nexaweb.xml.DocumentImpl.<init>(DocumentImpl.java:161)
       at com.nexaweb.xml.ParserImpl.parseXmlWithProcessing(ParserImpl.java:526)
       at com.nexaweb.server.servlet.NexawebServlet.executeProtocol(NexawebServlet.java:374)
       at com.nexaweb.server.servlet.NexawebServlet.service(NexawebServlet.java:229)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
       at java.lang.Thread.run(Unknown Source)
      Caused by: 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.SocksSocketImpl.connect(Unknown Source)
       at java.net.Socket.connect(Unknown Source)
       at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:187)
       at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:815)
       at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:525)
       at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
       at org.jboss.remoting.Client.invoke(Client.java:1634)
       at org.jboss.remoting.Client.invoke(Client.java:548)
       at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
       at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
       at $Proxy0.login(Unknown Source)
       at com.sbe.poolstock.servlet.LoginServlet.login(LoginServlet.java:143)
       at com.sbe.poolstock.servlet.LoginServlet.service(LoginServlet.java:74)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at com.nexaweb.server.servlet.forwarder.RequestForwardingServiceImpl.forward(RequestForwardingServiceImpl.java:121)
       at com.nexaweb.server.protocol.HandleEventExecutor.executeCommand(HandleEventExecutor.java:72)
       at com.nexaweb.server.protocol.ServerProtocolExecutor.executeCommand(ServerProtocolExecutor.java:40)
       at com.nexaweb.protocol.ProtocolExecutorManager.executeCommand(ProtocolExecutorManager.java:116)
       at com.nexaweb.protocol.ProtocolNamespaceHandler.receiveDispatch(ProtocolNamespaceHandler.java:91)
       at com.nexaweb.server.protocol.ServerProtocolNamespaceHandler.receiveDispatch(ServerProtocolNamespaceHandler.java:96)
       at com.nexaweb.xml.NamespaceHandler.receiveDispatch(NamespaceHandler.java:109)
       at com.nexaweb.xml.NamespaceHandlerManager.dispatch(NamespaceHandlerManager.java:102)
       at com.nexaweb.xml.ParserImpl.parseFragment(ParserImpl.java:317)
       at com.nexaweb.xml.ParserImpl.parseDomTree(ParserImpl.java:283)
       at com.nexaweb.xml.ParserImpl.parseDomTree(ParserImpl.java:222)
       at com.nexaweb.xml.DocumentImpl.<init>(DocumentImpl.java:161)
       at com.nexaweb.xml.ParserImpl.parseXmlWithProcessing(ParserImpl.java:526)
       at com.nexaweb.server.servlet.NexawebServlet.executeProtocol(NexawebServlet.java:374)
       at com.nexaweb.server.servlet.NexawebServlet.service(NexawebServlet.java:229)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
       at java.lang.Thread.run(Unknown Source)
       at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
       ... 48 more


      I found this error in other threads but I have never find a solution....


        • 1. Re: Can not get connection to server. Problem establishing s
          jaikiran

           

          "alexsbe" wrote:


          I have a remote server or client I always have this trace bellow :

          org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://127.0.0.1:3873/]
          
          


          Since it's a remote client, shouldn't the client be using the actual IP address (or hostname) instead of using 127.0.0.1? Can you provide more details about the client and what it is trying to do?

          • 2. Re: Can not get connection to server. Problem establishing s
            alexsbe

            Here is the jndi.properties

            java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
            java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
            java.naming.provider.url=jnp://:1099

            And the client code to call the EJB's.

            Context context = getContext();
            LoginEJB3 loginEJB3 = (LoginEJB3)context.lookup("LoginEJB3Bean/remote");
            


            in the jboss jmx interface, I can see the EJB deployed ...

            Global JNDI Namespace
            
             +- LoginEJB3Bean (class: org.jnp.interfaces.NamingContext)
             | +- remote (proxy: $Proxy65 implements interface com.sbe.ejb.session.LoginEJB3,interface org.jboss.ejb3.JBossProxy)
            



            If I call the ejb from an application server or a java application the error is the same.
            If I run the two serveur (tomcat on different port and jboss 4.2.2), it work propertly.

            If you need more details tell me.

            Thanks

            • 3. Re: Can not get connection to server. Problem establishing s
              alexsbe

               

              "alexsbe" wrote:
              Here is the jndi.properties

              java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
              java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
              java.naming.provider.url=jnp://serverIp:1099

              And the client code to call the EJB's.

              Context context = getContext();
              LoginEJB3 loginEJB3 = (LoginEJB3)context.lookup("LoginEJB3Bean/remote");
              


              in the jboss jmx interface, I can see the EJB deployed ...

              Global JNDI Namespace
              
               +- LoginEJB3Bean (class: org.jnp.interfaces.NamingContext)
               | +- remote (proxy: $Proxy65 implements interface com.sbe.ejb.session.LoginEJB3,interface org.jboss.ejb3.JBossProxy)
              



              If I call the ejb from an application server or a java application the error is the same.
              If I run the two serveur (tomcat on different port and jboss 4.2.2), it work propertly.

              If you need more details tell me.

              Thanks


              • 4. Re: Can not get connection to server. Problem establishing s
                jaikiran

                 

                "alexsbe" wrote:


                If I call the ejb from an application server or a java application the error is the same.
                If I run the two serveur (tomcat on different port and jboss 4.2.2), it work propertly.

                If you need more details tell me.



                I still haven't completely understood your setup.

                1) Is the client that you are running on a different system?
                2) Is the client running on Tomcat and the EJB deployed on JBoss?
                3) Does it work if both Tomcat (client) and JBoss(EJB) are on the same machine? (I guess, that's what you meant in your comment, above).
                4) Where have you placed the jndi.properties file? Are you sure it is being picked up? Can you try hard-coding the properties in the client code while doing the lookup and see if it works? Like this:

                Properties props = new Properties();
                 props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
                props.put(Context.PROVIDER_URL,"jnp://serverIP:1099");
                props.put(Context.URL_PKG_PREFIXES,"org.jboss.naming.jnp.interfaces");
                Context ctx = new InitialContext(props);
                LoginEJB3 loginEJB3 = (LoginEJB3)ctx.lookup("LoginEJB3Bean/remote");
                







                • 5. Re: Can not get connection to server. Problem establishing s
                  alexsbe

                  Here is the answer of your questions


                  1) Is the client that you are running on a different system?
                  The OS of the client is Windows for the moment. It is a tomcat server (I tried with a java application for the same result).

                  2) Is the client running on Tomcat and the EJB deployed on JBoss?

                  Exact

                  3) Does it work if both Tomcat (client) and JBoss(EJB) are on the same machine? (I guess, that's what you meant in your comment, above).
                  Yes it is working if there are in the same machine.

                  4) Where have you placed the jndi.properties file? Are you sure it is being picked up? Can you try hard-coding the properties in the client code while doing the lookup and see if it works?

                  Yes it is picked up, and correct.
                  Here is the code of my method getcontext. I checked if the values I have setted are correct.

                  private static Context getContext() throws NamingException {
                  
                   ResourceBundle bundle = ResourceBundle.getBundle("jndi");
                   Properties props = new Properties();
                  
                   props.put(Context.INITIAL_CONTEXT_FACTORY,bundle.getString(Context.INITIAL_CONTEXT_FACTORY));
                   props.put(Context.URL_PKG_PREFIXES,bundle.getString(Context.URL_PKG_PREFIXES));
                   props.put(Context.PROVIDER_URL,bundle.getString(Context.PROVIDER_URL));
                  
                   return new InitialContext(props);
                  
                   }


                  • 6. Re: Can not get connection to server. Problem establishing s
                    alexsbe

                    Nobody have an idea for this issue ?

                    • 7. Re: Can not get connection to server. Problem establishing s
                      jaikiran

                      Looking deeper into the logs, it does appear that the bean was looked up correctly and the method invoked on the Proxy:

                      org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing so
                      cket connection for InvokerLocator [socket://127.0.0.1:3873/]
                      at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.
                      java:532)
                      at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
                      at org.jboss.remoting.Client.invoke(Client.java:1634)
                      at org.jboss.remoting.Client.invoke(Client.java:548)
                      at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:6
                      7)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
                      at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
                      at $Proxy0.login(Unknown Source)
                      at com.sbe.poolstock.servlet.LoginServlet.login(LoginServlet.java:143)


                      You mentioned that the client is on a Windows OS. What about the JBoss server where the EJB is deployed? Is it a Windows or Linux box?

                      On the JBoss server where the EJB is deployed, can you run the following command and post the output?

                      netstat -ab


                      You mentioned you start JBoss using:

                      I start the server with run.sh -b 0.0.0.0, and-Djava.rmi.server.hostname=


                      What's the value that you specify there for -Djava.rmi.server.hostname? I am not very familiar with the java.rmi.server.hostname param. Any specific reason for using that? And what happens when you dont use this java.rmi.server.hostname param? Are you able to invoke the EJB?

                      Finally, can you post the contents of your etc/hosts file?

                      • 8. Re: Can not get connection to server. Problem establishing s
                        alexsbe

                        Thanks for your help,

                        The client is on windows (for test). It will be on a linux System for production.

                        When I don't specify the option -Djava.rmi.server.hostname=serverIp adress here is the trace I have from the client

                        javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: fedora.sbe-online.com; nested exception is:
                         java.net.ConnectException: Connection refused: connect]
                         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
                         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
                         at javax.naming.InitialContext.lookup(InitialContext.java:351)
                         at com.sbe.test.Client.main(Client.java:23)
                        Caused by: java.rmi.ConnectException: Connection refused to host: fedora.sbe-online.com; 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:667)
                         ... 3 more
                        Caused by: java.net.ConnectException: Connection refused: connect
                         at java.net.PlainSocketImpl.socketConnect(Native Method)
                         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
                         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:193)
                         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
                         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
                         at java.net.Socket.connect(Socket.java:507)
                         at java.net.Socket.connect(Socket.java:457)
                         at java.net.Socket.<init>(Socket.java:365)
                         at java.net.Socket.<init>(Socket.java:207)
                         at org.jboss.net.sockets.DefaultClientSocketFactory.createSocket(DefaultClientSocketFactory.java:77)
                         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
                         ... 8 more


                        and with this option I have the other error. I read from a forum that putting this option solve my issue. It did not solve it. I had an other one.

                        here is the information I have typing the netstat -a command
                        Connexions Internet actives (serveurs et établies)
                        Proto Recv-Q Send-Q Local Address Foreign Address State
                        tcp 0 0 fedora.sbe-online.:fagordnc *:* LISTEN
                        tcp 0 0 *:36008 *:* LISTEN
                        tcp 0 0 *:8009 *:* LISTEN
                        tcp 0 0 *:rmiactivation *:* LISTEN
                        tcp 0 0 *:rmiregistry *:* LISTEN
                        tcp 0 0 *:sunrpc *:* LISTEN
                        tcp 0 0 *:webcache *:* LISTEN
                        tcp 0 0 *:us-srv *:* LISTEN
                        tcp 0 0 *:48915 *:* LISTEN
                        tcp 0 0 *:40344 *:* LISTEN
                        tcp 0 0 fedora.sbe-online.com:smtp *:* LISTEN
                        tcp 0 0 *:krb524 *:* LISTEN
                        tcp 0 0 *:8093 *:* LISTEN
                        tcp 0 0 *:upnotifyp *:* LISTEN
                        tcp 0 0 *:59613 *:* LISTEN
                        tcp 0 0 *:n1-fwp *:* LISTEN
                        tcp 0 0 10.107.70.70:51503 10.107.1.10:ncube-lm ESTABLISHED
                        tcp 0 0 *:ssh *:* LISTEN
                        tcp 0 0 ::ffff:10.107.70.70:ssh ::ffff:10.107:dbcontrol-oms ESTABLISHED
                        tcp 0 132 ::ffff:10.107.70.70:ssh ::ffff:10.107:sercomm-wlink ESTABLISHED
                        tcp 0 0 ::ffff:10.107.70.70:ssh ::ffff:10.107.20.5:olsv ESTABLISHED
                        udp 0 0 *:43907 *:*
                        udp 0 0 *:59557 *:*
                        udp 0 0 *:940 *:*
                        udp 0 0 *:961 *:*
                        udp 0 0 *:mdns *:*
                        udp 0 0 *:sunrpc *:*
                        Sockets du domaine UNIX actives(serveurs et établies)
                        Proto RefCpt Indicatrs Type Etat I-Node Chemin
                        unix 2 [ ACC ] STREAM LISTENING 4476 @/var/run/hald/dbus-hAUCEFLem5
                        unix 2 [ ACC ] STREAM LISTENING 4041 /var/run/dbus/system_bus_socket
                        unix 2 [ ACC ] STREAM LISTENING 4173 /var/run/acpid.socket
                        unix 2 [ ACC ] STREAM LISTENING 4473 @/var/run/hald/dbus-CwaPn6jAVh
                        unix 2 [ ACC ] STREAM LISTENING 6060 @/tmp/.X11-unix/X0
                        unix 2 [ ] DGRAM 512 @/org/kernel/udev/udevd
                        unix 13 [ ] DGRAM 3965 /dev/log
                        unix 2 [ ] DGRAM 4498 @/org/freedesktop/hal/udev_event
                        unix 2 [ ACC ] STREAM LISTENING 3641 /var/run/rpcbind.sock
                        unix 2 [ ACC ] STREAM LISTENING 6008 /var/run/gdm_socket
                        unix 2 [ ACC ] STREAM LISTENING 3945 /var/run/pcscd.comm
                        unix 2 [ ACC ] STREAM LISTENING 4446 /var/run/avahi-daemon/socket
                        unix 2 [ ACC ] STREAM LISTENING 6061 /tmp/.X11-unix/X0
                        unix 2 [ ACC ] STREAM LISTENING 4013 /var/run/audispd_events
                        unix 2 [ ACC ] STREAM LISTENING 6194 /tmp/orbit-gdm/linc-8d1-0-260b868bdfaac
                        unix 2 [ ACC ] STREAM LISTENING 6199 /tmp/orbit-gdm/linc-8cf-0-73485901dff43
                        unix 2 [ ACC ] STREAM LISTENING 6210 /tmp/orbit-gdm/linc-8cd-0-1c2d188aeb267
                        unix 2 [ ] STREAM CONNECTE 29854
                        unix 2 [ ] DGRAM 28814
                        unix 3 [ ] STREAM CONNECTE 25936
                        unix 3 [ ] STREAM CONNECTE 25935
                        unix 3 [ ] STREAM CONNECTE 25934
                        unix 3 [ ] STREAM CONNECTE 25933
                        unix 3 [ ] STREAM CONNECTE 24660
                        unix 3 [ ] STREAM CONNECTE 24659
                        unix 3 [ ] STREAM CONNECTE 24658
                        unix 3 [ ] STREAM CONNECTE 24657
                        unix 3 [ ] STREAM CONNECTE 6223 @/tmp/.X11-unix/X0
                        unix 3 [ ] STREAM CONNECTE 6222
                        unix 3 [ ] STREAM CONNECTE 6219 /tmp/orbit-gdm/linc-8cd-0-1c2d188aeb267
                        unix 3 [ ] STREAM CONNECTE 6212
                        unix 3 [ ] STREAM CONNECTE 6209 /tmp/orbit-gdm/linc-8cf-0-73485901dff43
                        unix 3 [ ] STREAM CONNECTE 6208
                        unix 3 [ ] STREAM CONNECTE 6207 @/tmp/.X11-unix/X0
                        unix 3 [ ] STREAM CONNECTE 6206
                        unix 3 [ ] STREAM CONNECTE 6202 /tmp/orbit-gdm/linc-8cf-0-73485901dff43
                        unix 3 [ ] STREAM CONNECTE 6201
                        unix 3 [ ] STREAM CONNECTE 6198 /tmp/orbit-gdm/linc-8d1-0-260b868bdfaac
                        unix 3 [ ] STREAM CONNECTE 6197
                        unix 3 [ ] STREAM CONNECTE 6158 @/tmp/.X11-unix/X0
                        unix 3 [ ] STREAM CONNECTE 6157
                        unix 3 [ ] STREAM CONNECTE 6156 @/tmp/.X11-unix/X0
                        unix 3 [ ] STREAM CONNECTE 6155
                        unix 3 [ ] STREAM CONNECTE 6133 @/tmp/.X11-unix/X0
                        unix 3 [ ] STREAM CONNECTE 6132
                        unix 3 [ ] STREAM CONNECTE 6097 @/tmp/.X11-unix/X0
                        unix 3 [ ] STREAM CONNECTE 6096
                        unix 3 [ ] STREAM CONNECTE 6064 /var/run/acpid.socket
                        unix 3 [ ] STREAM CONNECTE 6063
                        unix 2 [ ] DGRAM 6028
                        unix 3 [ ] STREAM CONNECTE 6027 /var/run/pcscd.comm
                        unix 3 [ ] STREAM CONNECTE 6026
                        unix 3 [ ] STREAM CONNECTE 5196 @/var/run/hald/dbus-CwaPn6jAVh
                        unix 3 [ ] STREAM CONNECTE 5195
                        unix 3 [ ] STREAM CONNECTE 5194 /var/run/dbus/system_bus_socket
                        unix 3 [ ] STREAM CONNECTE 5193
                        unix 3 [ ] STREAM CONNECTE 5169 @/var/run/hald/dbus-CwaPn6jAVh
                        unix 3 [ ] STREAM CONNECTE 5168
                        unix 3 [ ] STREAM CONNECTE 5156 /var/run/dbus/system_bus_socket
                        unix 3 [ ] STREAM CONNECTE 5155
                        unix 3 [ ] STREAM CONNECTE 4998 /var/run/acpid.socket
                        unix 3 [ ] STREAM CONNECTE 4997
                        unix 3 [ ] STREAM CONNECTE 4981 @/var/run/hald/dbus-CwaPn6jAVh
                        unix 3 [ ] STREAM CONNECTE 4980
                        unix 3 [ ] STREAM CONNECTE 4638 @/var/run/hald/dbus-CwaPn6jAVh
                        unix 3 [ ] STREAM CONNECTE 4626
                        unix 3 [ ] STREAM CONNECTE 4493 @/var/run/hald/dbus-hAUCEFLem5
                        unix 3 [ ] STREAM CONNECTE 4492
                        unix 3 [ ] STREAM CONNECTE 4475 /var/run/dbus/system_bus_socket
                        unix 3 [ ] STREAM CONNECTE 4474
                        unix 3 [ ] STREAM CONNECTE 4449 /var/run/dbus/system_bus_socket
                        unix 3 [ ] STREAM CONNECTE 4448
                        unix 3 [ ] STREAM CONNECTE 4443
                        unix 3 [ ] STREAM CONNECTE 4442
                        unix 2 [ ] DGRAM 4439
                        unix 2 [ ] DGRAM 4389
                        unix 3 [ ] STREAM CONNECTE 4367 /var/run/dbus/system_bus_socket
                        unix 3 [ ] STREAM CONNECTE 4366
                        unix 2 [ ] DGRAM 4346
                        unix 2 [ ] DGRAM 4323
                        unix 2 [ ] DGRAM 4175
                        unix 2 [ ] DGRAM 4107
                        unix 3 [ ] STREAM CONNECTE 4045
                        unix 3 [ ] STREAM CONNECTE 4044
                        unix 2 [ ] DGRAM 4015
                        unix 2 [ ] DGRAM 4009
                        unix 3 [ ] STREAM CONNECTE 4008
                        unix 3 [ ] STREAM CONNECTE 4007
                        unix 2 [ ] DGRAM 3978
                        unix 3 [ ] STREAM CONNECTE 3826
                        unix 3 [ ] STREAM CONNECTE 3825


                        and finally the content of the /etc/hosts file
                        # Do not remove the following line, or various programs
                        # that require network functionality will fail.
                        127.0.0.1 fedora.domain fedora localhost.localdomain localhost fedora
                        myIp myname
                        ::1 localhost6.localdomain6 localhost6


                        • 9. Re: Can not get connection to server. Problem establishing s
                          jaikiran

                          Can you try mapping the machines IP to the hostname in the etc/hosts file. For example, if the IP is 10.107.70.70 add this following line to the file (or whatever is the hostname):

                          10.107.70.70 fedora.sbe-online.com


                          By the way, this looks something to do with the Remoting module of JBoss. The suggestion of adding this entry to your hosts file is based on some of the forum posts that i saw over there when i googled. One of them is this:

                          http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098486#4098486

                          • 10. Re: Can not get connection to server. Problem establishing s
                            alexsbe

                            on this link
                            http://www.dcm4che.org/confluence/display/ee2/2.13.0+Installation+instructions

                            I found this (what I did) :


                            15. (Optional) Allow remote access:

                            By default, JBoss does not bind to anything except the local address. Use
                            run -b 0.0.0.0
                            to allow running generic access.


                            I have chage 0.0.0.0 by the IP adress of the server, and now it work !!!