2 Replies Latest reply on Feb 22, 2018 12:51 AM by Anup Dey

    wildfly 11: when restarting the server: : Duplicate resource [(\"deployment\"

    Gaétan QUENTIN Newbie

      in wildfly 11 standalone-full:

      i have deployed 2 versions of jenkins, with overlays to redefine JENKINS_HOME:

       

      wildfly@java2:/opt/Wildfly/scripts$ grep -i jenkins   /opt/Wildfly/wildfly-11.0.0.Final/standalone/configuration/standalone-full.xml

              <deployment name="jenkins-2.89.4.war" runtime-name="jenkins-2.89.4.war">

              <deployment name="jenkins-2.108.war" runtime-name="jenkins-2.108.war">

              <deployment-overlay name="jenkins-2.89.4-jbossweb">

                  <deployment name="jenkins-2.89.4.war"/>

              <deployment-overlay name="jenkins-2.108-jbossweb">

                  <deployment name="jenkins-2.108.war"/>

       

      wars were deployed with jboss-cli:

       

      /opt/Wildfly/wildfly-11.0.0.Final/standalone/deployments/jenkins-2.108.war

      /opt/Wildfly/wildfly-11.0.0.Final/standalone/deployments/jenkins-2.89.4.war

       

      il was working  fine, even when restarting wildfly.

       

      I don't know what happened but now when i restart wildfly:

       

      05:37:17,507 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "jenkins-2.89.4.war")]) - failure description: "WFLYCTL0212hy=> \"jenkins-2.89.4.war\")]"

      05:37:17,511 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

       

       

      -> and it creates .failed files in deployment directory.

       

       

      wildfly in run with user account wildfly.

       

       

      regards