000018641 - How to set up Tomcat 4.x as Windows service with logging capabilities in RSA ClearTrust

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000018641
Applies ToTomcat 4.1
Microsoft Windows 2000 Advanced Server SP4
IssueHow to set up Tomcat 4.x as Windows service with logging capabilities in RSA ClearTrust
Tomcat process is not seen in the Services
CauseThe default installation of Tomcat does not place the executable automatically in the Windows Services
ResolutionWe can define our own script with logging capabilities. Create a bat file e.g. TomcatInstall.bat as follows:

set JAVA_HOME=<path to JDK 1.4.2>
set CATALINA_HOME=<path to jakarta-tomcat-4.1.x>

%CATALINA_HOME%\bin\tomcat -install "Jakarta Tomcat 4" %JAVA_HOME%\jre\bin\server\jvm.dll \
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar \
-Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap \
-params start -stop org.apache.catalina.startup.Bootstrap -params stop -out \
%CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log

Then, run the script. Afterwards, you would be able to see Apache Tomcat 4 as the Service name. The log files would be located in the <CATALINA_HOME>\logs\stdout.log directory.
Legacy Article IDa21332

Attachments

    Outcomes