Submit a ticketCall us

AnnouncementsCome see SolarWinds at VMUG Frankfurt

SolarWinds is delighted to attend the upcoming VMUG which will take place at Kap Europa in Frankfurt on June 19th, 2018.

See event details.

Home > Success Center > Web Help Desk (WHD) > Remove the embedded Tomcat version from the error message

Remove the embedded Tomcat version from the error message

Table of contents

Updated June 8, 2017

Overview

This article describes how to remove the version string from Tomcat HTTP error messages by repackaging the catalina.jar file with an updated ServerInfo.properties file.

Environment

  • WHD 12.4.x
  • WHD 12.5.x
  • Linux OS

Steps

  1. Go to <WHD_INSTAL_DIR>/bin/tomcat/lib.
  2. Run the following command to unpack the catalina.jar file:
    jar xf catalina.jar org/apache/catalina/util/ServerInfo.properties
  3. Update the ServerInfo.properties file by changing the server.info line to server.info=Apache Tomcat.
  4. Run the following command to repackage the catalina.jar file:
    jar uf catalina.jar org/apache/catalina/util/ServerInfo.properties
  5. Remove <WHD_INSTAL_DIR>/bin/tomcat/lib/org. This file was created when the ServerInfo.properties file was extracted.
  6. Restart WHD.

 

 

 

Last modified

Tags

Classifications

Public