title: Long time reloading pages because weblogic 12.2.1.3.0 triggers recompiling jsp every page acces
body: <p>I use weblogic 12.2.1.3.0 and EVERY TIME (not only the first time) I access a web page I wait for 2 minutes for it to render cause weblogic apparently recompiles all the jsps that it contains. Every page is made up of fragments using apache tiles 3.0 using definitions like these:</p>
  
  <pre><code>&lt;definition name="includeTemplate" template="/WEB-INF/jsp/templates/includeTemplate.jsp"&gt;
    &lt;put-attribute name="content" value="/WEB-INF/jsp/index.jsp"/&gt;
    &lt;put-attribute name="headContent" value=""/&gt;
    &lt;put-list-attribute name="dialogs"&gt;
      &lt;add-attribute value="messageDialogDef"/&gt;
      &lt;add-attribute value="validationDialogDef"/&gt;
      &lt;add-attribute value="detailDialogDef"/&gt;
    &lt;/put-list-attribute&gt;
  &lt;/definition&gt;
  </code></pre>
  
  <p>Weblogic throws lots of these messages in its log files:</p>
  
  <pre><code>&lt;BEA-101360&gt; &lt;Recompiling JSP [ServletContext@1759767545[app:app-ear_ear module:/app path:null spec-version:3.1]], resource [/WEB-INF/jsp/templates/list/menu.jsp], because it is stale.&gt;
  </code></pre>
  
  <p>I also use spring (mvc) 4.3.21</p>
  
  <p>Any idea what is going on and how to avoid <strong>only</strong> the <strong>useless</strong> recompilings?</p>