jueves, 26 de septiembre de 2013

At least one JAR was scanned for TLDs yet contained no TLDs

Where are my TLDs?!

The most common scenario for a simple application is using the jstl.jar library that contains useful tag libs such as "http://java.sun.com/jsp/jstl/core" and others.
After adding the library and making a simple
<c:out value="${value}"/>
the browser shows "value" and in the logs we see a warning saying

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.

Understanding Tomcat file skipping

For an improvement in loading times, tomcat has inside catalina.properties the list of files that will be skipped.
Find the line that says tomcat.util.scan.DefaultJarScanner.jarsToSkip = and search for the file that contains the TLDs.
In my case is jstl.jar, and remove it from the list.

1 comentarios:

Unknown dijo...

Investing most of these possibilities is straightforward actually for freshness, especially when these people make use of a very good binary possibilities software package. It may be hard to do this particular with no suitable software package because time schedule is just too quick being acting alone.

Publicar un comentario