6 Replies Latest reply on Jul 19, 2012 9:19 AM by dlbarron28

    Why don't jsp changes show up

    dlbarron28

      In my (rather large) web application I would like to make changes to jsp files in the running server and have the changes show up without stopping and starting the server.  I see this happen in Tomcat but when the same application runs in jboss it does not happen.  I have also tried touching the web.xml to force a reload but it does not happen with this application, although it does with others.

       

      Any suggestions?

        • 1. Re: Why don't jsp changes show up
          periklis_douvitsas

          Hi,

           

          can you give some more details.

          What version of jboss are you using?

          Do you precompile your jsp?

           

          Thanks

          • 2. Re: Why don't jsp changes show up
            dlbarron28

            I'm using version 5.1.  The configuration has not been changed, so if 5.1 precompiles jsp's by default than I am precompiling.  How would I find out for sure?

             

            Thanks

            David

            • 3. Re: Why don't jsp changes show up
              periklis_douvitsas

              In order to see the changes in jsp files

              I think you have to go to "server\default\deployers\jbossweb.deployer"  (this is the default deploy, go to the directory that you deployed your applications)

              Then, open the web.xml file and go to the section that says

              <servlet>

                    <servlet-name>jsp</servlet-name>

                    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>

               

              Add a section like this

               

                   <init-param>
                      
              <param-name>checkInterval</param-name>
                      
              <param-value>1</param-value>
                   
              </init-param>

              in this file says that the checkinterval is

               

              <!--   checkInterval       If development is false and checkInterval is   -->

                 <!--                       greater than zero, background compilations are -->

                 <!--                       enabled. checkInterval is the time in seconds  -->

                 <!--                       between checks to see if a JSP page needs to   -->

                 <!--                       be recompiled. [0] 

               

              Another thing. How do you change the jsp file?Do you go inside the war and change the jsp there?Do you make the war file again and redeploy it?

               

              Hope this helps

              • 4. Re: Why don't jsp changes show up
                dlbarron28

                I'll give that a try.

                 

                I am deploying my web applications from exploded directories instead of from a war file.  To change the jsp I open it in an editor, make the changes and save.

                 

                Will I need to "touch" web.xml to get the changes to show or will this take care of it?

                 

                Thanks

                • 5. Re: Why don't jsp changes show up
                  periklis_douvitsas

                  let's hope that you do not have to change the web.xml !Give it a try and let me know

                   

                  Also, when you test it, refresh your browser (control+F5) or clear the cache in order to make sure that your browser does not cache anything.

                  • 6. Re: Why don't jsp changes show up
                    dlbarron28

                    Works like a charm!

                     

                    Thanks, that's been puzzling me for a while.