[ 
https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655594#action_12655594
 ] 

Antoine commented on GERONIMODEVTOOLS-537:
------------------------------------------

I use Geronimo v2.1.3 on both machines. This is also the same JDK on both 
machines. The remote machine does have Eclipse neither a graphical interface, 
it is just a server.
As I was testing Geronimo, I was just trying to deploy the basic 
jaxws-calculator example provided on this website. I will attach a JAR.

I did not try on the command line until now so I did it, thanks to Joao. In my 
case the result is different I am asked the password for the and after that I 
get a ConnectException : the connection is refused.


./deploy.sh -host 192.168.16.60 deploy ~/Work/tmp/Demo/jaxws-demo.jar 
Using GERONIMO_BASE:   /home/antoine/opt/java/geronimo-tomcat6-javaee5-2.1.3
Using GERONIMO_HOME:   /home/antoine/opt/java/geronimo-tomcat6-javaee5-2.1.3
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /usr/lib/jvm/java-6-sun-1.6.0.10//jre
Username: system
Password: *******
    Error: Unable to connect to server at
    deployer:geronimo:jmx://192.168.16.60 -- Connection refused to host:
    127.0.1.1; nested exception is: 

        java.net.ConnectException: Connection refused
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: 
Connection refused to host: 127.0.1.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:199)
        at 
org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:95)
        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.1.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:2312)
        at 
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
        at 
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
        at 
org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.newRemoteDeploymentManager(BaseDeploymentFactory.java:182)
        ... 8 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:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:180)
        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)
        ... 16 more



So, on the command line, I seem to pass the stage of the deployment manager.
For now I have no explanation on why the connection is refused : there is no 
firewall on both machines or on the network between them. there is only a 
switch between them. I can connect to the machine with SSH, on the admin 
console...
I will investigate to see if there could have some more reasons to this.


> Remote server deployment fails with connection exception
> --------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-537
>                 URL: 
> https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-537
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 2.2.0, 2.1.4
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>         Attachments: RemoteDeployTestEA.ear
>
>
> Distribution of module failed.  See log for details.
>   Connection refused: connect
>   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.Socket.connect(Unknown Source)
>       at java.net.Socket.connect(Unknown Source)
>       at sun.net.NetworkClient.doConnect(Unknown Source)
>       at sun.net.www.http.HttpClient.openServer(Unknown Source)
>       at sun.net.www.http.HttpClient.openServer(Unknown Source)
>       at sun.net.www.http.HttpClient.<init>(Unknown Source)
>       at sun.net.www.http.HttpClient.New(Unknown Source)
>       at sun.net.www.http.HttpClient.New(Unknown Source)
>       at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown 
> Source)
>       at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown 
> Source)
>       at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
>       at 
> org.apache.geronimo.deployment.plugin.remote.FileUploadServletClient.connectToServer(FileUploadServletClient.java:266)
>       at 
> org.apache.geronimo.deployment.plugin.remote.FileUploadServletClient.uploadFilesToServer(FileUploadServletClient.java:115)
>       at 
> org.apache.geronimo.deployment.plugin.remote.RemoteDeployUtil.uploadFilesToServer(RemoteDeployUtil.java:33)
>       at 
> org.apache.geronimo.deployment.plugin.remote.DistributeCommand.massageFileNames(DistributeCommand.java:43)
>       at 
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:114)
>       at 
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
>       at 
> org.apache.geronimo.deployment.plugin.remote.DistributeCommand.run(DistributeCommand.java:50)
>       at java.lang.Thread.run(Unknown Source)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to