How to run Webtomcat manually for debug purposes
search cancel

How to run Webtomcat manually for debug purposes

book

Article ID: 267693

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

Especially with regard to Windows Spectrum environments, the Catalina and webswing logs may not be sufficient by themselves when Webtomcat is having issues staying online.

Environment

DX NetOps Spectrum All currently supported releases

Cause

Unable to determine cause of webtomcat's inability to start

Resolution

Note: For this process to be a valid test, webtomcat process should NOT be running, but the OneClick tomcat processes SHOULD be fully running

Linux:

1. Access the <SPECROOT>/webtomcat/bin directory:

cd /usr/Spectrum/webtomcat/bin

2. Set the JRE_HOME environmental variable to <SPECROOT>/Java/jre.

export JRE_HOME=/usr/Spectrum/Java/jre

3. Execute the catalina.sh file

./catalina.sh run

4. Review the terminal output for additional messages/faults/failures

 

Windows:

1. Using a command prompt (not cygwin bash prompt), access the <SPECROOT>\webtomcat\bin directory:

cd d:
cd win32app\Spectrum\webtomcat\bin

2. Set the JRE_HOME environmental variable to <SPECROOT>/Java/jre.

set JRE_HOME=d:\win32app\Spectrum\Java\jre

3. Execute the catalina.bat file

catalina.bat run

4. Review the terminal output for additional messages/faults/failures