Description
when I run the following command:
>mvn jbi:projectDeploy -Dhost=XXX.X.X.XXX -Dusername=XXX -Dpassword=XXX
(where XXX = real values)
to deploy to a remote server running ServiceMix standalone, I get the following error:
Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root e
xception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at org.apache.servicemix.jbi.management.task.JbiTask.getJMXConnector(JbiTask.java:77)
at org.apache.servicemix.jbi.management.task.JbiTask.connect(JbiTask.java:85)
at org.apache.servicemix.jbi.management.task.JbiTask.execute(JbiTask.java:252)
... 21 more
Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refuse
Notice that localhost is being invoked (not the hostname I indicated in the -D option)