2 Replies Latest reply on May 28, 2010 3:10 PM by Brian Munter

    Deployment issue - jsp updates not being picked up

    Brian Munter Newbie

      This situation is specific to when we want to roll back a version.  The way we were proposing to do this is to backup the indivudual EARs per release.  So our scenerio is as follows:


      • Build EAR for version 2.1 of xxxApp (just generating the EAR through Eclipse)
      • Stop Jboss, copy new EAR into default/deploy, Start Jboss
      • All ok and changes are there but decide we need to roll back
      • Stop Jboss, Go get backup EAR for 2.0 and copy into default/deploy, Start Jboss
      • Logs look fine and new EAR is picked up BUT when I go to the app, the JSPs are still from the version 2.1.  But the classes and jars and files seem to be updated.  Also, I verifired about 20 times that it is the right EAR that I rolled back to.


      I am guessing JBoss bases jsp recompilation off timestamp.  How do I get around this issue and make it pickup the latest jsps and recompile?  Evrything works if I pull the previous releases source from the SVN branch and rebuild the EAR.  But was hoping instead of doing that, we just backup the EAR and can use it instead of having to rebuild.   Thoughts?




        • 1. Re: Deployment issue - jsp updates not being picked up
          jaikiran pai Master

          Which version of JBoss AS is this? Going by your other post in this forum, I am assuming it's AS 5.1.0.


          JBoss AS writes out the compiled JSPs to the JBOSS_HOME/server/< servername>/work folder. You might want to manually delete it during every release/backup cycle or you might want to automate it by setting deleteWorkDirOnContextDestroy to true (by default it's false) attribute in JBOSS_HOME/server/< servername>/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml file:


          <!--Flag to delete the Work Dir on Context Destroy -->
                <property name="deleteWorkDirOnContextDestroy">true</property>



          Setting this property to true will clear out the application's compiled jsps and other data from the work folder on every undeploy of the application.

          • 2. Re: Deployment issue - jsp updates not being picked up
            Brian Munter Newbie

            Perfect.  I will let you know if it doesnt work but looks like it will do the trick.  Thanks for the help