Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

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
17:41, 7 Jun 2017

Tags

Classifications

Public