2 Replies Latest reply on Sep 5, 2015 4:57 AM by Alessio Orlando

    wildfly maven plugin deployment with port offset shifted

    Alessio Orlando Newbie

      i'm working with the keycloak wildfly9 and maven 3 for my webapp development. I need to use some plugin in order to deploy fastly my jar inside my keycloak WildFly instance.

      Because of some problem i had to modify the wildfly standalone.xml file in order to increment the port offset to 1. Now 8080 is shifted to 8081 and the 9990 web management webconsole to 9991.

      I found the wildfly maven plugin by which i can deploy my jar inside the server. All was going fine before i changed the offset port. But now i cannot deploy anymore as maven logs me an error saying:

      : Could not execute goal deploy on C:\Users\Aliosha\workspace_keycloak\alessioWebbap\target\alessioWebbap.war. Reason: I/O Error c

      ould not execute operation '{

      [ERROR] "operation" => "read-attribute",

      [ERROR] "address" => [],

      [ERROR] "name" => "launch-type"

      [ERROR] }': java.net.ConnectException: WFLYPRT0053: Could not connect to http-remoting://127.0.0.1:9991. The connection failed: XN

      IO000816: Redirect encountered establishing connection

      [ERROR] -> [Help 1]

      I get the same error event if i configure the plugin this way:

      <plugin>

           <groupId>org.wildfly.plugins</groupId>

           <artifactId>wildfly-maven-plugin</artifactId>

            <version>1.1.0.Alpha1</version>

        <configuration>

             <jbossHome>/usr/local/wildfly-9.0.0.Final</jbossHome>

                <hostname>127.0.0.1</hostname>

                <port>9991</port>

        </configuration>

      ...

      What am i missing? why the configuration setting are transparent to the plugin?