8 Replies Latest reply on Dec 26, 2013 3:39 AM by swd847

    JSP reload

    lbonco

      Hi,

      How can I enable jsp reload with last git wildfly (694de80)? I try to modify "check-interval" and "modification-test-interval" but to see the modifcation on JSP I have to restart the application. Here you can find my jsp config:

       

       

      [domain@domain:9990 /] /profile=default/subsystem=undertow/servlet-container=default/setting=jsp:read-resource

      {

          "outcome" => "success",

          "result" => {

              "check-interval" => 5,

              "disabled" => false,

              "display-source-fragment" => true,

              "dump-smap" => false,

              "error-on-use-bean-invalid-class-attribute" => false,

              "generate-strings-as-char-arrays" => false,

              "java-encoding" => "UTF8",

              "keep-generated" => true,

              "mapped-file" => true,

              "modification-test-interval" => 10,

              "recompile-on-fail" => false,

              "scratch-dir" => undefined,

              "smap" => true,

              "source-vm" => "1.7",

              "tag-pooling" => true,

              "target-vm" => "1.7",

              "trim-spaces" => false,

              "x-powered-by" => true

          }

      }

       

      Tanks,

      Luca

        • 1. Re: JSP reload
          ctomc

          and you are using exploded deployment?

          • 2. Re: JSP reload
            lbonco

            Yes,

            I'm using exploded deployment.

             

            Luca

            • 3. Re: JSP reload
              ctomc

              in domain mode? that sounds bit odd.

               

              so you are using unmanaged deployment.

               

              Can you try first in standalone mode and just having application deployed exploded should work.

               

               

              no extra configuration should be needed.

               

               

               

              --

              tomaz

              • 4. Re: JSP reload
                lbonco

                Hi,

                If I enable auto-deploy-exploded wildfly restart the webapp every time I modify something under the path of the war, if I disable auto-deploy-exploded if I modify the jsp I can't see the modifcation untill the restart of the webapp. What I need is only the reload of the modified JSP, non the whole webapp.

                 

                Thanks,

                Luca

                • 5. Re: JSP reload
                  swd847

                  This looks like an issue with the latest git, somewhere in the big chunk of refactoring I did recently I seem to have lost the development mode attribute. This PR should fix it: https://github.com/wildfly/wildfly/pull/4946

                  • 6. Re: JSP reload
                    lbonco

                    Hi,

                    after your PR merge have I to enable develoment mode to get JSP reload?

                     

                    Can you explain me the use of modification-test-interval and check-interval? In jboss-as-7 I can set development-mode = false and modification-test-interval and check-inerval != 0 and I get the JSP relod.

                     

                    Thanks,

                    Luca

                    • 7. Re: JSP reload
                      kishorereddy84

                      Hi Stuart,

                       

                      Will this work in domain mode??

                       

                      Regards

                      Kishore

                      • 8. Re: JSP reload
                        swd847

                        No.