How to configure tomcat service?
My configuration is: CLM 6.0; Tomcat; Derby DB. This standalone installation is for testing purposes only.
I have configured tomcat to run as a service according to the instructions in the info center. However, even when the service shows started, my webpage https://localhost:9443/jts/admin says "Page can't be displayed".
When I run the command manually, I get the following
E:\IBM\JazzTeamServer\server\tomcat\bin>startup.bat
The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program
However, running the following seems to startup the server properly.
E:\IBM\JazzTeamServer\server>server.startup.bat
How do I get this command to run as the service so that my server will be persistent?
2 answers
Comments
A script does not make it easier in my opinion. When converting the relative paths to absolute path, you still need to provide the missing bit - which can introduce errors as well.
I do not agree.
A script could find out by itself or ask the install directory once and use this input to change the relative pathes to absolute ones. This would be less error prone, than manually modifying a felt dozen of files.
I am all for automation, however.......
I am not even sure if this is scriptable on Windows.
In addition the parameters can be different in different deployments - customized to increase performance etc. especially when upgrading. Not sure if you can rely on a script to pull that out of an environment.
Other OS's have other means to do that and you'd need numerous scripts and potentially also make it adoptable to different environments.
It would likely get terribly complicated.
Yes, it might be complicated. But I have checked the man page
http://www-01.ibm.com/support/knowledgecenter/SSYMRC_6.0.0/com.ibm.jazz.install.doc/topics/t_run_rqm64_win_service.html
For me it looks like the root path is the same for all 34!! places to be edited as described. And yes, it might be different for other OS, but the man page also does only describe a way for Linux. Why not start with this?
When it comes to scripting, Perl is doable even in Windows :P
Comments
Donald Nong
Jul 06 '15, 7:54 p.m.Based on the question at the end of your post, it appears that you do not truly understand the steps for configuring the Tomcat server as Windows service. The steps effectively move the configuration details from the server.startup.bat to the Windows service, and the Windows service does not rely on the server.startup.bat at all. Read the instructions again carefully.
http://www-01.ibm.com/support/knowledgecenter/SSYMRC_6.0.0/com.ibm.jazz.install.doc/topics/t_run_rqm64_win_service.html