2 Replies Latest reply on Oct 24, 2017 11:24 PM by bungrudi

    How to turn off JSP hot deploy?

    bungrudi

      I cannot seem to turn off JSP auto recompilation in Wildfly 10.1.0.Final.

      My WAR is exploded, and everytime I change JSP it always got picked and recompiled by WildFly.

       

      My undertow subsystem config looks like this,

       

           <subsystem xmlns="urn:jboss:domain:undertow:3.1">

                  <buffer-cache name="default"/>

                  <server name="default-server">

                      <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>

                      <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>

                      <host name="default-host" alias="localhost">

                          <location name="/" handler="welcome-content"/>

                          <filter-ref name="server-header"/>

                          <filter-ref name="x-powered-by-header"/>

                      </host>

                  </server>

                  <servlet-container name="default">

                      <jsp-config/>

                      <websockets/>

                  </servlet-container>

                  <handlers>

                      <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>

                  </handlers>

                  <filters>

                      <response-header name="server-header" header-name="Server" header-value="WildFly/10"/>

                      <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/>

                  </filters>

              </subsystem>

       

      What could I have missed or done wrong?

        • 1. Re: How to turn off JSP hot deploy?
          jaikiran

          My recollection of the configs is that if the "development" attribute on the <jsp-config/> element is set to false then JSP hot deploy is disabled.

           

          Given that that attribute is by default false, the configs you have pasted should imply hot deployment is disabled. Are you sure this the configuration xml that's being used?

           

          P.S: I haven't checked the code in WildFly to be sure about this.

          • 2. Re: How to turn off JSP hot deploy?
            bungrudi

            Hi Jaikiran,

             

            I'm 101% sure.

            I even tried to change the value via web console and CLI, the standalone.xml would get updated and still no effect after restart.