Uploaded image for project: 'WildFly Maven Plugin'
  1. WildFly Maven Plugin
  2. WFMP-55

The run goal no longer works

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.1.0.Alpha11
    • None
    • None
    • None

      The run goal no longer works because an attempt is made to read the type of the server before the server is started. In the AbstractDeployment.execute() method an attempt is made to determine if the server is a domain server. At this point the run goal has not started the server therefore the client can't communicate with the server.

      One option is to add a new isManagedDomain() method that the run goal can override. Either way a better error messages should be used when the server is potentially not running.

      Current Error Message
      [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Alpha11-SNAPSHOT:run (default-cli) on project simple-servlet: Failed to execute goal run. java.net.ConnectException: WFLYPRT0053: Could not connect to http-remoting://localhost:9990. The connection failed: Connection refused -> [Help 1]
      

            jperkins-rhn James Perkins
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: