• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mbland / tomcat-servlet-testing-example / 6776994475
100%

Build:
DEFAULT BRANCH: main
Ran 06 Nov 2023 09:58PM UTC
Jobs 1
Files 1
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Nov 2023 09:45PM UTC coverage: 100.0%. Remained the same
6776994475

push

github

mbland
Silence Tomcat INFO logs, disableChecksAndJarScan

The TestTomcat worked perfectly well, but generated chatty logs. The
first step was to call `tomcat.setSilent(true)` to suppress most of
these. However, these messages remained:

  Nov 06, 2023 4:40:21 PM org.apache.jasper.servlet.TldScanner scanJars
  INFO: 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.

  Nov 06, 2023 4:40:21 PM
  org.apache.catalina.loader.WebappClassLoaderBase
  checkThreadLocalsForLeaks
  WARNING: You need to add "--add-opens=java.base/java.lang=ALL-UNNAMED"
  to the JVM command line arguments to enable ThreadLocal memory leak
  detection.  Alternatively, you can suppress this warning by disabling
  ThreadLocal memory leak detection.

  Nov 06, 2023 4:40:21 PM
  org.apache.catalina.loader.WebappClassLoaderBase
  clearReferencesRmiTargets
  WARNING: You need to add
  "--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED" to the JVM
  command line arguments to enable RMI Target memory leak detection.
  Alternatively, you can suppress this warning by disabling RMI Target
  memory leak detection.

I had to dig through the Tomcat source and API docs to figure out that I
needed to update the StandardContext returned from `tomcat.addWebapp()`.
Fortunately I remembered from the tutorials linked from the class
comment that this was indeed possible and OK to do.

- https://github.com/apache/tomcat
- https://tomcat.apache.org/tomcat-10.1-doc/api/index.html

5 of 5 relevant lines covered (100.0%)

2.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6776994475.1 06 Nov 2023 09:57PM UTC 0
100.0
GitHub Action Run
Source Files on build 6776994475
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6776994475
  • 0bcb4a36 on github
  • Prev Build on main (#6765432492)
  • Next Build on main (#6777058918)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc