Remove Tomcat Version Info from SPS Error Page

Document ID : KB000014089
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

When the CA Access Gateway (SPS) throws an error, it reports the Tomcat version on the Error Page. For example: 

HTTP/1.1 400 Bad Request

Apache Tomcat/7.0.70 - Error Report

Question:

How to remove the Apache Tomcat Version Info from SPS Error Pages?

Environment:
CA Access Gateway: All Versions
Answer:

1. Stop the SPS services

2. Backup the existing catalina.jar from the Tomcat\lib directory

3. Open a Command Prompt and go the Tomcat\lib directory

4. Run the following command to unpackage the jar file:

jar xf catalina.jar org/apache/catalina/util/ServerInfo.properties

5. Now navigate to the ServerInfo.properties file and modify the server.info=Apache Tomcat/7.0.70 to remove the version info. For example: server.info=Apache Tomcat. Save the file.

6. Run the following command to re-package the jar file:

jar uf catalina.jar org/apache/catalina/util/ServerInfo.properties

7. Delete the org/apache/catalina/util/ServerInfo.properties folder structure

8. Restart the SPS services