geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine (JIRA)" <>
Subject [jira] Commented: (GERONIMODEVTOOLS-537) Remote server deployment fails with connection exception
Date Thu, 11 Dec 2008 10:19:52 GMT


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.

./ -host 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-
Username: system
Password: *******
    Error: Unable to connect to server at
    deployer:geronimo:jmx:// -- Connection refused to host:; nested exception is: Connection refused
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: Connection refused
to host:; nested exception is: Connection refused
	at org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.newRemoteDeploymentManager(
	at org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.getDeploymentManager(
	at javax.enterprise.deploy.shared.factories.DeploymentFactoryManager.getDeploymentManager(
	at org.apache.geronimo.deployment.cli.ServerConnection.tryToConnect(
	at org.apache.geronimo.deployment.cli.ServerConnection.<init>(
	at org.apache.geronimo.deployment.cli.DeployTool.execute(
	at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(
	at org.apache.geronimo.cli.AbstractCLI.executeMain(
	at org.apache.geronimo.cli.deployer.DeployerCLI.main(
Caused by: java.rmi.ConnectException: Connection refused to host:; nested exception
is: Connection refused
	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(
	at sun.rmi.transport.tcp.TCPChannel.createConnection(
	at sun.rmi.transport.tcp.TCPChannel.newConnection(
	at sun.rmi.server.UnicastRef.invoke(
	at Source)
	at org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.newRemoteDeploymentManager(
	... 8 more
Caused by: Connection refused
	at Method)
	at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(
	at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(
	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(
	... 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:
>             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
> Connection refused: connect
>   	at Method)
>   	at Source)
>   	at Source)
>   	at Source)
>   	at Source)
>   	at Source)
>   	at Source)
>   	at Source)
>   	at Source)
>   	at<init>(Unknown Source)
>   	at Source)
>   	at Source)
>   	at Source)
>   	at Source)
>   	at Source)
>   	at org.apache.geronimo.deployment.plugin.remote.FileUploadServletClient.connectToServer(
>   	at org.apache.geronimo.deployment.plugin.remote.FileUploadServletClient.uploadFilesToServer(
>   	at org.apache.geronimo.deployment.plugin.remote.RemoteDeployUtil.uploadFilesToServer(
>   	at org.apache.geronimo.deployment.plugin.remote.DistributeCommand.massageFileNames(
>   	at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(
>   	at
>   	at
>   	at Source)

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

View raw message