NonStop Servlets for JavaServer Pages (NSJSP) 7.0 System Administrator's Guide

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 7.0 System Administrator’s Guide—674372-005
3-46
The server.xml File
Table 3-10. Descriptions of Listeners configured as child elements of the Server
element
Listener Description
Jasper Listener The Jasper Listener initializes the Jasper2 JSP engine before
loading any web applications. The Jasper2 JSP engine is an
implementation of the Java Server Pages 2.1 specification. The
class name of the listener is
org.apache.catalina.core.JasperListener.
JRE Memory Leak
Prevention Listener
The JRE Memory Leak Prevention Listener provides work-
arounds for known places where the Java Runtime environment
uses the context class loader to load a singleton as this will
cause a memory leak if a web application class loader happens
to be the context class loader at the time.
The work-around is to initialize these singletons when this
listener starts as Tomcat's common class loader is the context
class loader at that time. It also provides work-arounds for
known issues that can result in locked JAR files.
ThreadLocal Leak
Prevention Listener
The ThreadLocal Leak Prevention Listener triggers the renewal
of threads in Executor pools when a Context is being stopped to
avoid thread-local related memory leaks. Active threads will be
renewed one by one when they come back to the pool after
executing their task.
Server Lifecycle
Listener
The Server Lifecycle Listener initializes the MBeanServer. The
MBeanServer registers MBeans. Without this Listener, MBeans
provided as part of Apache Tomcat will not be available. The
class name of the Listener is
org.apache.catalina.mbeans.ServerLifecycleListe
ner.
This Listener is actually removed from Tomcat 7.0. But removal
of this is leading to unavailability of some MBeans required for
the Admin functionality. Hence, this has been retained.
Global Resources
Lifecycle Listener
The Global Resources Lifecycle Listener initializes the Global
Java Naming and Directory Interface (JNDI) resources defined in
the server.xml file and in the GlobalNamingResources
element. Without this Listener, none of the Global Resources
can be defined. The class name of the Listener is
org.apache.catalina.mbeans.GlobalResourcesLifec
ycleListener.