title: Tomcat 8 Slow startup with deployWAR
body: <p>I went from Tomcat 7.0.54 to 8.0.15, upgraded openSSL to 1.0.1k and tcnative to the latest 1.1.32 with APR 1.5.1.</p>
  
  <p>However, Tomcat now starts about 2 to 3 times slower than before. Most noticeably, it takes alot longer to deploy WAR files.</p>
  
  <p>Tomcat 7</p>
  
  <pre><code>Jan 20, 2015 3:39:36 PM org.apache.catalina.startup.HostConfig deployWAR
  INFO: Deployment of web application archive &lt;PATH&gt;\file.war has finished in 433 ms
  </code></pre>
  
  <p>Tomcat 8</p>
  
  <pre><code>Jan 21, 2015 2:27:01 PM org.apache.catalina.startup.HostConfig deployWAR
  INFO: Deployment of web application archive &lt;PATH&gt;\file.war has finished in 4,310 ms
  </code></pre>
  
  <p>This happens to all WAR files, all went from milliseconds to around 5 seconds.</p>
  
  <p>I removed the JasperListener from the server.xml because it appears to have been removed.</p>
  
  <pre><code>unpackWARs="false"
  autoDeploy="true"
  </code></pre>
  
  <p>unpackWars does not make a difference if set to true (atleast not noticable).
  I thought it might have been the annotation scanning issue fixed in 8.0.17, but no luck. </p>
  
  <p>I noticed that jarsToSkip in catalina.properties changed from</p>
  
  <pre><code>tomcat.util.scan.DefaultJarScanner.jarsToSkip to
  tomcat.util.scan.StandardJarScanFilter.jarsToSkip
  </code></pre>
  
  <p>and that 
  org.apache.catalina.startup.TldConfig.jarsToSkip was removed and went to context.xml </p>
  
  <pre><code>&lt;JarScanner&gt;
      &lt;JarScanFilter tldSkip="websocket-api.jar,tomcat-websocket.jar"/&gt;
  &lt;/JarScanner&gt;
  </code></pre>
  
  <p>However, none of this seems to bring me back to the performance of tomcat 7. The one action that did do it, was removing the websocket jars. However we need them. This brings me to the conclusion that they are still scanned, even though they should be skipped.</p>
  
  <p>Am I missing something? Does the context.xml not do the same as the catalina.properties jarsToSkip?</p>