4 Replies Latest reply on Oct 6, 2015 7:07 AM by mallikarjuna.reddy.nune

    Not able to deploy after manual modifications in deployed war seeing myproject.war.undeployed

    mallikarjuna.reddy.nune

      Hi Team,

       

      After modifying a file in my existing war i am not able deploy my war properly .

      I see myproject.war.undeployed in standalone/deplolyments folder

      I didnt see any reference to my war deployment in server.log or i didnt see any error also.

      Any intputs will be helpful.

       

      Regards,

      Mallikarjuna

        • 1. Re: Not able to deploy after manual modifications in deployed war seeing myproject.war.undeployed
          jaysensharma

          Hello Mallikarjunam


          1  How are you deploying the "myproject.war" WAR to the server? Looks like you just putting the new WAR inside the "standalone" directory . So just to isolate the issue did you try deploying it using console or CLI ) are you still noticing the same behavior?

           

          2  Which file are you changing inside the application? (Is it EE specific file like web.xml , application.xml ...etc or application specific file)

           

          3  Do you have the deployment scanner ON ?  Or have you disabled the deployment-scanner ?  If it is disabled then server will not be able to detect any changes in the "deployments" directory.

           

          4 After removing the "myproject.war.undeployed" file from the "deployments" directory did you try restarting the WildFly to check if wildfly is scanning that file or not. After restarting the wildfly check the server.log  first few lines it should show if it has detected a deployment or not?

          • 2. Re: Not able to deploy after manual modifications in deployed war seeing myproject.war.undeployed
            mallikarjuna.reddy.nune

            Hello Ray,

             

            Thanks for the reply,

             

            1)We deploy our application using installer and initally our application seems working fine with wildfly

            2)I was changing some version related file specific to my application(It is not EE specific file like web.xml , application.xml)

            3)We are using default setting regarding deployment scanner , didnt tried using jboss-cli

            4)Tried starting server by deleting "myproject.war.undeployed" still not able to deploy

             

             

            From logs I see

             

             

            2015-10-06 01:52:05,592 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found myprojectstylesr5.1.1.ear in deployment directory. To trigger deployment create a file called myprojectstylesr5.1.1.ear.dodeploy

            2015-10-06 01:52:05,604 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found myproject.ear in deployment directory. To trigger deployment create a file called myproject.ear.dodeploy

            2015-10-06 01:52:05,676 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)

             

            We are using Linux environment , we created a separate user in Linux for application deployment .

             

            Regards,

            Mallikarjuna

            • 3. Re: Not able to deploy after manual modifications in deployed war seeing myproject.war.undeployed
              jaysensharma

              Hello,

               

                You will need to create a file "myproject.ear.dodeploy" and "myprojectstylesr5.1.1.ear.dodeploy" files inside the "deployments" directory in order to make sure that the application is deployed. These  files are called as marker files.

               

              See the following section:

              Marker Files

              The marker files always have the same name as the deployment content to which they relate, but with an additional file suffix appended. For example, the marker file to indicate the example.war file should be deployed is named example.war.dodeploy. Different marker file suffixes have different meanings.

              See:   Application deployment - WildFly 8 - Project Documentation Editor

              .dodeployPlaced by the user to indicate that the given content should
              be deployed into the runtime (or redeployed if already
              deployed in the runtime.)
              1 of 1 people found this helpful
              • 4. Re: Not able to deploy after manual modifications in deployed war seeing myproject.war.undeployed
                mallikarjuna.reddy.nune

                Hi,

                 

                After creating .dodeploy files I am able to deploy.

                When I modified file in the war .deployed file is modified as .undeployed .

                Since I am not using auto deploy may be I was supposed to create this file everytime or configure to auto deploy?

                Can i stop server and do modifications which is best way?

                 

                Thanks regards,