geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MDiamond <Michael.Diam...@noaa.gov>
Subject Remote Deployment: Connection Refused
Date Thu, 19 Nov 2009 17:46:03 GMT

I'm try to use deploy.sh to deploy a WAR to a remote Geronimo 2.1.4 server,
but I can't even get list-modules to work.
Basically, I have two machines, A and B. A Geronimo server is running on B.
On A, I try the following:
./deploy.sh --host B list-modules
and get the following error:

    Error: Unable to connect to server at
    deployer:geronimo:jmx://B:1099 -- Connection refused to host:
    127.0.0.1; nested exception is: 

        java.net.ConnectException: Connection refused
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException:
Connection refused to host: 127.0.0.1; nested exception is: 
        java.net.ConnectException: Connection refused
        at
org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.newRemoteDeploymentManager(BaseDeploymentFactory.java:190)
        at
org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.getDeploymentManager(BaseDeploymentFactory.java:140)
        at
javax.enterprise.deploy.shared.factories.DeploymentFactoryManager.getDeploymentManager(DeploymentFactoryManager.java:111)
        at
org.apache.geronimo.deployment.cli.ServerConnection.tryToConnect(ServerConnection.java:148)
        at
org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:88)
        at
org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:57)
        at
org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:161)
        at
org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
        at
org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
        at
org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
Caused by: 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: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.invoke(UnicastRef.java:110)
        at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown
Source)
        at
javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2327)
        at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:279)
        at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
        at
org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.newRemoteDeploymentManager(BaseDeploymentFactory.java:182)
        ... 9 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:525)
        at java.net.Socket.connect(Socket.java:475)
        at java.net.Socket.<init>(Socket.java:372)
        at java.net.Socket.<init>(Socket.java:186)
        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)
        ... 17 more


Both machines are in each other's /etc/hosts file and the iptables on
machine B are set to allow connections on ports 1099, 9999, 9998, 8080, and
8443 (not that all of those are necessary). Any ideas as to what's going
wrong?
-- 
View this message in context: http://old.nabble.com/Remote-Deployment%3A-Connection-Refused-tp26421415s134p26421415.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message