Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1100 Allow containerName to be specified on the command line for projectDeploy
  3. SM-965

Allow use of -Dhost, -Dport, -Dusername and -Dpassword on jbi:projectDeploy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.1.2, 3.2
    • tooling
    • None

    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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            carmichs Steve Carmichael
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: