How to hide Tomcat Version for products using Tomcat included in TRA Gridlib

How to hide Tomcat Version for products using Tomcat included in TRA Gridlib

book

Article ID: KB0075895

calendar_today

Updated On:

Products Versions
TIBCO Silver Fabric Enabler for TIBCO Administrator Enterprise Edition -

Description

Tomcat error pages (e.g HTTP Status 404) display the version of the Tomcat in use (e.g Apache Tomcat/7.0.35). It can be necessary to stop displaying this version.

Follow the steps below in order to hide the Tomcat version number for those pages:
  • Extract TRA gridlib
  • copy catalina.jar from location tpcl\5.11\tomcat\7\lib to a temp location
  • run command: jar xf catalina.jar org/apache/catalina/util/ServerInfo.properties
  • Edit ServerInfo.properties: Change value of server.info to remove or replace version, save
  • run command jar uf catalina.jar org/apache/catalina/util/ServerInfo.properties
  • zip all contant of TRA gridlib without changing name  (name and/or version can be changed to differentiate with GA TRA gridlib and avoid confusion but the grid-library.xml name and version also need to be change accordingly before repackaging the TRA gridlib)
Tibco only recommends these changes and any other changes that has not been approved by Tibco Silver Fabric Engineering will make the environment unsupported.
 

Issue/Introduction

This guide explains how to hide Tomcat version for products using Tomcat including in TRA gridlib

Environment

Silver Fabric Products using TRA distribution gridlib for Silver Fabric (e.g Tibco Admistrator for Silver Fabric, Tibco BusinessWorks for Silver Fabric)

Resolution

KB 000034271, jira SFBW-1562