DOC

com.github.yohayg : tomcat-deployment-listener

Maven & Gradle

Apr 03, 2018
0 stars

tomcat-deployment-listener · According to Docker best practices a Docker container should not be up if the process fails to load properly. Apache Tomcat deploys all the web applications loaded in its webapp folder. This is a resilient solution for web applications not influencing the application server. However, In a Docker environment according to best practice, the process should fail in case the web application failed to initialize properly. By adding the additional jar created by this project to Tomcat classpath and adding the new listener in the Tomcat conf/server.xml the user can make sure the Tomcat process fails in case there is an initialization exception in their web application which will cause the Tomcat used the tomcat container to abort in immediately indicate that there was an initialization error Abort tomcat when a webapp fails to deploy in Docker container Docker container best practice. Tomcat does not stop if a webapp fail to deploy and the container will continue to run. By adding this listener the tomcat will abort in case the Tomcat fails to deploy the webapp, And the container will not start. You will need to place the listener in Tomcat server.xml and set the Tomcat classpath to contain this jar

Table Of Contents

Latest Version

Download com.github.yohayg : tomcat-deployment-listener Javadoc & API Documentation - Latest Versions:

All Versions

Download com.github.yohayg : tomcat-deployment-listener Javadoc & API Documentation - All Versions:

Version Size Javadoc Updated
2.0.x
1.0.x

How to open Javadoc JAR file in web browser

  1. Rename the file tomcat-deployment-listener-2.0.0-javadoc.jar to tomcat-deployment-listener-2.0.0-javadoc.zip
  2. Use your favourite unzip tool (WinRAR / WinZIP) to extract it, now you have a folder tomcat-deployment-listener-2.0.0-javadoc
  3. Double click index.html will open the index page on your default web browser.

How to generate Javadoc from a source JAR?

Running the command javadoc:

javadoc --ignore-source-errors -encoding UTF-8 -sourcepath "tomcat-deployment-listener-2.0.0-sources.jar" -d "tomcat-deployment-listener-2.0.0-javadoc" -subpackages