1 Reply Latest reply on Oct 27, 2011 8:38 PM by l-aris

    JBoss 6 IP configs for EC2

    l-aris Newbie

      Hello - we are having some problems trying to configure JBoss 6 AS to work within the EC2 instance.  Specifically, we are having trouble connecting external clients who access the AS through the Public IP but then when upon reaching the Private IP, the connection is refused.   We are wondering if anyone in the community might have any insights or advice about what to fix.  

      We tried multi-home configuration, but was unsuccessful...

       

       

       

      Separately, we also tried deploying all all internal servers on a VPN in the cloud.  We started the JBoss AS and all the servers and JNDI addresses to point to the VPN address of the AS.  However, when we poked around the JMX-console and looked under jboss.systems, the HostAddress property in systemInfo was set to an address like 10.255.94.255.   This seemed very wierd to us and the other servers seemed confused when trying to connect to the AS.  Does anyone have a guess as to what could be happening?

       

      Thanks very much!

      Lori

        • 1. Re: JBoss 6 IP configs for EC2
          l-aris Newbie

          To elaborate on the second question, the log output

           

          011-10-28 00:01:48,914 ERROR [main] Unable to register MBean with JMX
          java.io.IOException: Cannot bind to URL [rmi://:9500/jmxrmi]: javax.naming.ServiceUnavailableException [Root excep                                         tion is java.rmi.ConnectException: Connection refused to host: 10.255.94.255; nested exception is:
                  java.net.ConnectException: Connection refused]
                  at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:804)
                  at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:417)
                  at com.armanta.services.framework.AbstractService.run(AbstractService.java:305)
                  at com.armanta.services.reporttree.TreeServerImpl.run(TreeServerImpl.java:679)
                  at com.armanta.services.framework.Launcher.main(Launcher.java:99)
          Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refus                                         ed to host: 10.255.94.255; nested exception is:
                  java.net.ConnectException: Connection refused]
                  at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
                  at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
                  at javax.naming.InitialContext.bind(InitialContext.java:400)
                  at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
                  at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
                  ... 3 more
          Caused by: java.rmi.ConnectException: Connection refused to host: 10.255.94.255; nested exception is:
                  java.net.ConnectException: Connection refused
                  at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
                  at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
                  at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
                  at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
                  at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
                  at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
                  ... 7 more
          Caused by: java.net.ConnectException: Connection refused
                  at java.net.PlainSocketImpl.socketConnect(Native Method)
                  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
                  at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
                  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
                  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
                  at java.net.Socket.connect(Socket.java:529)
                  at java.net.Socket.connect(Socket.java:478)
                  at java.net.Socket.<init>(Socket.java:375)
                  at java.net.Socket.<init>(Socket.java:189)
                  at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
                  at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
                  at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
                  ... 12 more