How to start a Tomcat instance as a Windows service instead of using a Startup script generated by the Domain Utility?
book
Article ID: KB0092623
calendar_today
Updated On:
Products
Versions
TIBCO iProcess Insight
-
Not Applicable
-
Description
Resolution: Description: ============ When Tomcat is registered with TIBCO Domain using Domain Utility, a Startup script is generated with TIBCO parameters that are required during Tomcat startup. If Windows service needs to be used instead of the Startup script, modify Tomcat Windows service to add TIBCO specific parameters. Windows service can be created in case Windows service does not exist for the Tomcat instance.
Environment: ===========
- TIBCO iProcess™ Insight version 2.2.0 or higher - TIBCO Runtime Agent™ (TRA) version 5.6.0 or higher - TIBCO Administrator™ version 5.6.0 or higher - Apache Tomcat version 5.0.28, 5.5.x - Windows Server 2003
Resolution: ===========
Steps to create Windows service are:
1). Open service.bat available in <Tomcat home>\bin directory for editing.
2). Use the following command to create the service: service install <service name>, for example - service install instance2
More information about this can be found in the service.bat file and in the Tomcat Documentation.
Steps to modify Tomcat Windows service are:
1). Launch <Tomcat home>/bin/tomcat5w.exe .
2). From the "Java" tab, set Java Classpath and Java options as follows (Look in the Startup script generated by Domain Utility on the target setup and ensure all the variables in the Startup script are added and values match with the target setup):