My application does not use any servlet annotations. That I want skip the scanning for annotations. But it look like that Tomcat 11.0 ignore the metadata-complete="true"
attribute. Do I have to handle this differently with servlet version 6.1? Is this a bug in Tomcat 11.0?
My file WEB-INF/web.xml starts with:
<?xml version="1.0" encoding="ISO-8859-1"?><web-app xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee web-app_6_1.xsd" version="6.1" metadata-complete="true">
The log output is:
INFORMATION [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/11.0.0]INFORMATION [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [foobar.war]FEIN [main] org.apache.jasper.servlet.TldScanner.scanResourcePaths No TLD files were found in resource path [/WEB-INF/].FEIN [main] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:.......INFORMATION [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.