3 Replies Latest reply on Nov 30, 2016 10:54 AM by fdlprod

    Update WAR File in EAR using WildFly

    simranjeetsingh1786

      Hi,

       

      I have an EAR deployed in Wildfly which has 7 sub modules (WAR)

      My Requirement is to update a sub-module(WAR) without deploying the EAR file.

       

      Thanks and Regards,

      Simranjeet Singh.

        • 1. Re: Update WAR File in EAR using WildFly
          ctomc

          look into deployment overlays

          1 of 1 people found this helpful
          • 2. Re: Update WAR File in EAR using WildFly
            simranjeetsingh1786

            Hi Tomaz,

             

            i checked the deployment overlays, but i am getting en error when i try to update the sub-deployment.

            deployment-overlay add --name=my_war--content=my_war.war=<path>\my_war.war --deployments=my_ear.ear --redeploy-affected

             

            WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-4" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.

            my_ear.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"my_ear.ear\".STRUCTURE: WFLYSRV0153: Failed to process phase STRUCTURE o

            deployment \"my_ear.ear\"

              Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0054: Failed to process children for EAR [\"/D:/wildfly-10.0.0.Final/bin/content/

            a.ear\"]

              Caused by: java.io.IOException: VFS000017: Filesystem already mounted at mount point \"\"/D:/wildfly-10.0.0.Final/bin/content/my_ear.ear/my_war.war\"\""}}}}

             

             

            I dont know what is causing this exception.

            Could you please help me out ?

            • 3. Re: Update WAR File in EAR using WildFly
              fdlprod

              i have exactly the same problem.. have an EAR with multiple wars, then with command overlay :

               

              deployment-overlay add --name=myOverlay5 --content=AofPortal.war=AofPortal.war --deployments=Application.ear --redeploy-affected

               

              have the following error :

               

              Caused by: java.io.IOException: VFS000017: Filesystem already mounted at mount point