Tomcat fails to present a web page when SSL is configured. How can I get debug information at the Tomcat level?
search cancel

Tomcat fails to present a web page when SSL is configured. How can I get debug information at the Tomcat level?

book

Article ID: 13258

calendar_today

Updated On:

Products

SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service CA Service Desk Manager CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

It is possible to configure Tomcat for SSL so that certificates are used by the web browser via https. 

If problems are encountered after following the guidance for implementing SSL with Tomcat, it may be useful to gather debug information from Tomcat for more information to help with root cause analysis.



How can I configure CA Service Desk Manager to collect debug information from Tomcat for SSL-related problems?

Environment

CA Service Desk Manager - ALL versions

Resolution

As per best practices, then make a backup of any files that are to be changed. In this case, make a backup copy of the NX.env file.

Edit the NX.env file.  Add one of the following parameters to the appropriate"JAVA_OPTIONS" environment variable in the NX.env file:

-Djavax.netdebug=ssl,handshake

-Djavax.net.debug=ssl

-Djavax.net.debug=all

For example, change:

@NX_JAVA_OPTIONS=-Djava.net.preferIPv4Stack=false -Xms64M -Xmx1024M

to:

@NX_JAVA_OPTIONS=-Djava.net.preferIPv4Stack=false -Xms64M -Xmx1024M -Djavax.net.debug=all

Save the file.

Restart Tomcat by running "pdm_tomcat_nxd -c STOP", waiting a minute or two, and then running "pdm_tomcat_nxd -c START".

The addition of the parameter to the options causes additional messages to be written to the $NX_ROOT\log\jsrvr.log file.

(If you may want the change to persist, make the same change to the NX.env_nt.tpl file.)

Remove the added parameter from the environment variable and recycle Tomcat as soon as it is no longer needed, so that any potential performance impact of writing the additional debug messages is avoided.

Additional Information