This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Starting up Tomcat 8

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am cleaning up the TLD messages:

FINE [localhost-startStop-1] org.apache.jasper.servlet.TldScanner$TldScannerCallback.scan No TLD files were found in [file:???...jar]. Consider adding the JAR to the tomcat.util.scan.StandardJarScanFilter.jarsToSkip property in CATALINA_BASE/conf/catalina.properties file.



I am also getting the messages:

FINE [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanResourcePaths No TLD files were found in resource path [/WEB-INF/pages/reports/].



How do I stop the scanning of resources?


 
Saloon Keeper
Posts: 12129
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Tomcat manual refers to an attribute in the context.xml file that seems to do what you want. Look for tldSkip.

http://tomcat.apache.org/tomcat-8.0-doc/config/jar-scan-filter.html
 
Steve Nelligan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The information contained in the documents all refer to .jar files.
The problem is where Tomcat is scanning Resource paths which do not contain jar files; rather portal page configuration files.
 
Stephan van Hulst
Saloon Keeper
Posts: 12129
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if there is a way to disable TLD scanning on resource paths.

Why do you want to do this anyway?
 
Steve Nelligan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Speed up startup
2. remove extra entries in log file
 
Stephan van Hulst
Saloon Keeper
Posts: 12129
258
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Steve Nelligan wrote:1. Speed up startup


How much time is startup taking now?

2. remove extra entries in log file


Why are you setting the log level to FINE if you don't want granular logging?
 
Saloon Keeper
Posts: 22248
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TLDs are Tag Library Descriptors. They are files that are parsed to determine what custom JSP tags are available and how they are used.

I wouldn't think that Tomcat bothers to scan files that aren't potential sources of custom tags, but even so, the overhead of looking for and not finding a TLD is minimal.

I suppose if it really annoys you, you could add an empty TLD to the JAR, though.
 
Are you okay? You look a little big. Maybe this tiny ad will help:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic