0 Replies Latest reply on Jul 20, 2017 3:32 PM by Rajesh Shah

    wildfly cluster mode - maven plugin redeployment issue

    Rajesh Shah Newbie

      We are new to Wildfly 10.

       

      We are running widlfy in cluster mode.  We are using wildlfy-maven plugin to deploy "war" artifacts on the server from Jenkins Build Job.

      Below is maven plugin config:

      <plugin>

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

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

             <version>1.2.0.Alpha4</version>

             <configuration>

                 <hostname>${wildfly.host}</hostname>

                 <port>${wildfly.port}</port>

                 <username>${wildfly.user}</username>

                 <password>${wildfly.password}</password>

                 <server-groups>

                              <server-group>${wildfly.server-group}</server-group>

                          </server-groups>

                        </configuration>

             <executions>

                          <execution>

                              <phase>install</phase>

                              <goals>

                                  <goal>redeploy</goal>

                              </goals>

                          </execution>

                      </executions>

         </plugin>

       

      We have noticed that after couple of redeployment. We get below error from the server. Then we have to restart server to resolve issue.

       

      [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.0.Alpha4:redeploy
      (default) on project rws-gift-card-api: Failed to execute goal redeploy:
      {"WFLYDC0074: Operation failed or was rolled back on all servers. Server
      failures:" => {"server-group" =>
      {"lolasoa-9721-group" => {"host" =>
      {"usoh2qxsoa002" => {"lolasoa-9721-server2" =>
      "Writes closed"}}}}}} -> [Help 1]

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven
      with the -e switch.

      [ERROR] Re-run Maven using the -X switch to enable full debug
      logging.

      [ERROR]

      [ERROR] For more information about the errors and possible
      solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

      [ERROR]

      [ERROR] After correcting the problems, you can resume the build
      with the command

      [ERROR]   mvn <goals> -rf :rws-gift-card-api

       

       

      We have another instance running in standalone mode.  We don't see above issue in that environment.

       

      Thanks for your help!