Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes

Comments

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



2 answers

Permanent link
Hi Jo, It seems the configuration the tomcat7 service to run as a service still wrong since you can start the JTS server by E:\IBM\JazzTeamServer\server>server.startup.bat.

Can you follow the instruction on the online help Configuring Apache Tomcat server to run as a Windows service carefully? Especially the procedure steps 1, 8 and 9.



0 votes


Permanent link
It is very cumbersome and error-prone to do this modifications in the teamserver.properties and log4j.properties files manually and it would be more than comfort to deliver a script to do this.

0 votes

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

It is a fairly simple setup for a timeconsuming editing of references, and well worth scripting

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,505
× 40
× 19

Question asked: Jul 03 '15, 5:05 a.m.

Question was seen: 3,383 times

Last updated: Feb 14 '16, 7:00 p.m.

Confirmation Cancel Confirm