Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it required to add org.apache.catalina.startup.VersionLoggerListener for tomcat 8 server.xml?

Tags:

java

tomcat8

I am upgrading to tomcat 8 from 7. Is it required to add this listener?

<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
like image 631
user3819236 Avatar asked Nov 11 '14 07:11

user3819236


People also ask

What is the purpose of Catalina in Tomcat?

Tomcat is actually composed of a number of components, including a Tomcat JSP engine and a variety of different connectors, but its core component is called Catalina. Catalina provides Tomcat's actual implementation of the servlet specification; when you start up your Tomcat server, you're actually starting Catalina.

Does Tomcat use log4j by default?

Apache Tomcat. Log4j may be used as the logging framework for Apache Tomcat. This support is implemented automatically by including the log4j-api, log4j-core, and log4j-appserver jars in the boot classpath.

What is server xml in Apache Tomcat?

SERVER. xml file is Tomcat's main configuration file, and is responsible for specifying Tomcat's initial configuration on startup as well as defining the way and order in which Tomcat boots and builds. The elements of the server.

What is VersionLoggerListener?

Class VersionLoggerListenerLogs version information on startup. This listener must only be nested within Server elements and should be the first listener defined.


1 Answers

As far as I know this listener prints the application server and OS informations. It should be the first on the list of listeners included in the <Server> element but can be ommited.

like image 120
tmarwen Avatar answered Oct 21 '22 05:10

tmarwen