<div dir="ltr">Hi Tom,<div><br></div><div><a href="https://cwiki.apache.org/confluence/display/TOMCAT/HowTo+FasterStartUp">https://cwiki.apache.org/confluence/display/TOMCAT/HowTo+FasterStartUp</a> mentions that in Tomcat 8 you can use a <JarScanFilter> element in the context file of a web application. Looking at <a href="https://tomcat.apache.org/tomcat-8.0-doc/config/jar-scan-filter.html">https://tomcat.apache.org/tomcat-8.0-doc/config/jar-scan-filter.html</a>, it would appear that we can now use the <font face="monospace">defaultTldScan</font> attribute to disable TLD scanning for an application without needing to maintain a list of jars to skip. My experimentation shows that putting this in the IDP's context file causes the TLD scanning warning and associated delay to be removed on startup:</div><div><br></div><div><Context docBase="/path/to/war/idp.war" privileged="true" antiResourceLocking="false" swallowOutput="true"><br>  <JarScanner><br>    <JarScanFilter defaultTldScan="false" /><br>  </JarScanner><br></Context><br></div><div><br></div><div>This seems a simpler and easier to maintain approach to the one at <a href="https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3269689345/Tomcat+10.1">https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3269689345/Tomcat+10.1</a> and <a href="https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199511039/Troubleshooting#Slow-startup-time">https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199511039/Troubleshooting#Slow-startup-time</a>.</div><div><br></div><div>Regards,</div><div><br></div><div>Max</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 20 Oct 2023 at 15:29, Tom Zeller <<a href="mailto:tzeller@dragonacea.biz">tzeller@dragonacea.biz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We try to keep catalina.properties up-to-date in the example<br>
tomcat-base that we test with.<br>
<br>
Right now it skips JARs from the IdP and OP Plugin JARs, but no other<br>
IdP Plugin JARs at the moment.<br>
<br>
Some documentation here :<br>
<br>
<a href="https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3269689345/Tomcat+10.1" rel="noreferrer" target="_blank">https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3269689345/Tomcat+10.1</a><br>
<br>
--Tom<br>
<br>
> I have not tried to disable TLD scanning. This looks like it could save another 3 seconds but looks like it would complicate upgrades due to the need to track jars.<br>
-- <br>
For Consortium Member technical support, see <a href="https://shibboleth.atlassian.net/wiki/x/ZYEpPw" rel="noreferrer" target="_blank">https://shibboleth.atlassian.net/wiki/x/ZYEpPw</a><br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small">Max Spicer</div><div style="font-size:small">Identity Systems, IT Services, University of York<br></div></div></div></div></div></div>