You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Tapas Mishra <mi...@gmail.com> on 2010/05/03 14:52:21 UTC

able to connect to server at deployer:geronimo:jmx://localhost:9090 -- Failed to retrieve RMIServer stub: javax.nami

I have changed the default port of geronimo application server to 9090

then following the deployment guide here
https://cwiki.apache.org/GMOxDOC11/deployer-tool.html
I got following error



geronimo-jetty7-javaee5-2.2/bin# java -jar ./deployer.jar --port 9090
deploy /root/a12/target/a12-0.1.war
2010-05-03 07:20:55,392 ERROR [DeployTool] Error:
org.apache.geronimo.common.DeploymentException: Unable to connect to
server at deployer:geronimo:jmx://localhost:9090 -- Failed to retrieve
RMIServer stub: javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
	at org.apache.geronimo.deployment.cli.ServerConnection.tryToConnect(ServerConnection.java:155)
	at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:89)
	at org.apache.geronimo.deployment.cli.ServerConnection.<init>(ServerConnection.java:58)
	at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:165)
	at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
	at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
Caused by: javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException:
Failed to retrieve RMIServer stub: javax.naming.CommunicationException
[Root exception is java.rmi.ConnectIOException: non-JRMP server at
remote endpoint]
	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:149)
	... 6 more
Caused by: java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:342)
	at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
	at org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.newRemoteDeploymentManager(BaseDeploymentFactory.java:182)
	... 9 more
Caused by: javax.naming.CommunicationException [Root exception is
java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
	at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
	at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
	at javax.naming.InitialContext.lookup(InitialContext.java:409)
	at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1902)
	at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1871)
	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:276)
	... 11 more
Caused by: java.rmi.ConnectIOException: non-JRMP server at remote endpoint
	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:248)
	at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
	at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
	at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
	at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114)
	... 16 more


-- 
Tapas