Tomcat Debug

Utility to investigate tomcat issues.

Installation

Add tomcat-debug-${tomcat-debug.version}-SNAPSHOT.jar to $TOMCAT_BASE/lib (or through catalina.properties in common.loader).

Listeners

  • TomcatDebugListener enables to log some deployment information to ensure about server state like webapp classloader.

Usage

server.xml
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="io.yupiik.tomcat.TomcatDebugListener" /> (1)
  <!-- ... -->
</Server>
  1. Enable the debug listener - better if put first.