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

Delos Dai commented on GERONIMODEVTOOLS-537:
--------------------------------------------

Hi, 

What's the os of your remote server? Is it linux?

I tried it on linux and got the same error. 
But if I add an entry in /etc/hosts and delete the original one, then it worked 
fine. So I think it's due to the host name mapping.

eg. 
the host name is "abc" and ip is "1.2.3.4"
add "1.2.3.4    abc" in /etc/hosts
If "127.0.0.1 abc" exist in /etc/hosts, please delete it.

Hope it helps!

> 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: jaxws-demo.jar, 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