question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement: Skip scanning xercesImpl/xml-apis jars with Tomcat

See original GitHub issue

Running Spring Boot 1.5.2 with the embedded Tomcat 8.5.x on Oracle Java 8, I see the following in the logs:

2017-04-04 17:18:18,934 WARN [org.apache.tomcat.util.scan.StandardJarScanner] - <Failed to scan [file:/Users/Misagh/.m2/repository/xalan/xalan/2.7.2/xml-apis.jar] from
 classloader hierarchy>
java.io.FileNotFoundException: /Users/Misagh/.m2/repository/xalan/xalan/2.7.2/xml-apis.jar (No such file or directory)

...
2017-04-04 17:18:18,934 WARN [org.apache.tomcat.util.scan.StandardJarScanner] - <Failed to scan [file:/Users/Misagh/.m2/repository/xalan/xalan/2.7.2/xercesImpl.jar] from
 classloader hierarchy>
java.io.FileNotFoundException: /Users/Misagh/.m2/repository/xalan/xalan/2.7.2/xercesImpl.jar (No such file or directory)
  • Should the two JARs listed above, xml-apis.jar and xercesImpl.jar, be also excluded from scans and listed in TldSkipPatterns?
  • If so, could I submit a pull request that provides that change?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
snicollcommented, Apr 4, 2017

@mmoayyed could you please join us on gitter when you have questions like that? That would reduce the noise on the tracker. Thanks!

0reactions
wilkinsonacommented, Jun 29, 2019

Yes, if you want those jars to be skipped during TLD scanning, you will need to configure the appropriate patterns.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Embedded tomcat giving failed to scan jars from classloader ...
jar in application.properties file or server: tomcat: additional-tld-skip-patterns: '*.jar' in application.yml file.
Read more >
How do I make Tomcat startup faster?
How do I make Tomcat startup faster? General; JAR scanning. Configure your web application; Remove unnecessary JARs; Exclude JARs from scanning; Disable ...
Read more >
Improve Tomcat Startup Time - skybert.net
Out of the box, my Tomcat version 7.0.62 with 8 webapps inside two different <Host/> containers booted in around 52 seconds.
Read more >
Understanding the Tomcat Classpath - Common problems ...
A common question that pops up on lots of Apache Tomcat user forums is how to configure Tomcat's classpath to include this or...
Read more >
How to configure Tomcat for FootPrints 12.X and 20.X onwards
FootPrints requires specific Tomcat configuration settings. ... all folders within the application and its own folders, looking and scanning for jar files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found