6 Replies Latest reply on Jul 25, 2013 7:04 AM by francesco benvadi

    help with hot deploying jsp changes

    rathana bujji Newbie

      Hi All,

      Any help is greatly appreciated.I am trying but my attempts were not fruitful.


      I am using jboss-as-7.1.1.Final. My goal is to hot-deploy jsps when a change is done in jsp files etc., but jboss seems to be doing full re-deploy of webapp. This is coming in the way of development as i have to wait until jboss does full re-deploy(i have to log back in as http session is discared too).


      I did 2 settings after reading on these forums:



      I have indicated development mode in JBOSS_HOME\standalone\configuration\standalone-af-jee.xml 

      <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

          <jsp-configuration development="true"/>




      Setup Auto-deploy exploded setting to true under deployment scanners in management console at port 9990


      I have put exploded version of ear in JBOSS_HOME\standalone\deployments


      so it looks like this


      myapp.ear  <--this is a folder
      mywebapp.war  <--this is a folder

      Now when i do small text change in helloworld.jsp, jboss 7 does the full re-deployment of webapp( taking a few minutes) instead of just deploying this 1 jsp so that i can test this change immediately in the next second.


      Pls help!!

        • 1. Re: help with hot deploying jsp changes
          Wolf-Dieter Fink Master

          you should set auto-deploy-exploded not to 'true' as this will enable the scanner to watch each file and deploy the application on any change.

          set false and use the mwebapp.ear.dodeploy file to deploy and redeploy if necessary.

          • 2. Re: help with hot deploying jsp changes
            rathana bujji Newbie

            Hi Wolf-Dieter,

            I set the auto-exploded to 'false', changed 1 jsp file in exploded war folder and force deployed using myapp.ear.dodeploy. Still the same issue. It brings down the entire webapp and redeploys entire webapp with new jsp change. I need ways so that the entire webapp does not re-deploy but just this 1 jsp change gets 'HOT'(not Auto) deployed. Thanks

            • 3. Re: help with hot deploying jsp changes
              Tomaz Cerar Master

              7.1.1 has known issue with jsp configuration not being aplied at all.

              this has been fixed few days after 7.1.1 was released, try using any version after that. i would recomend 7.2.0 / eap 6.1 alpha

              • 4. Re: help with hot deploying jsp changes
                rathana bujji Newbie

                Hi Tomaz, Thanks for response.


                I tried both 6.1.0.Alpha and 6.1.0.Final.



                Here is the configuration for my web subsystem.


                <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="true">
                <jsp-configuration development="true"/>
                <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
                <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>
                <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>



                Here is the deployed app folder structure under deployments folder



                myapp.ear <--this is a folder
                mywebapp.war <--this is a folder


                If auto deploy exploded setting is false, jboss does nothing when i edit a jsp in deployments folder so i am still seeing old page.


                If auto deploy exploded setting is true, JBoss does a full redeploy of webapp, which i don't want. Problem with the full redeploy is that it brings down the webapp and the entire http session so i have to log back in again to test my change. This is not ideal in development time.


                Pls let me know if something does not look right. Thanks.




                • 5. Re: help with hot deploying jsp changes
                  jaikiran pai Master

                  <subsystem xmlns="urn:jboss:domain:web:1.1"

                  From what I see in my EAP 6 installation, the version of the web subsystem is (at least) 1.4. Make sure you have that right.

                  • 6. Re: help with hot deploying jsp changes
                    francesco benvadi Newbie


                    I have exactly the same problem.

                    Is there anyone that can help ?

                    Best Regards and Thanks