error when starting the apache tomcat 7.0 tomcat 7 service on local computer
![]()
Hi,
We have an issue with creating and starting a new apache tomacat service for Rational Requirements Composer tool.
Steps we followed are:
1. Followed the link - http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/index.jsp?topic= Configuring Apache Tomcat server to run as a Windows service
2. First we verified that there is no another installed service by running command.
E:\Program Files\IBM\JazzTeamServer406\server\tomcat\bin>sc query tomcat7
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:
The specified service does not exist as an installed service.
3. Installed the service
E:\Program Files\IBM\JazzTeamServer406\server\tomcat\bin>service.bat install tom
cat7
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
Service will try to guess them from the registry.
Installing the service 'tomcat7' ...
Using CATALINA_HOME: "E:\PROGRA~2\IBM\JazzTeamServer406\server\tomcat"
Using CATALINA_BASE: "E:\PROGRA~2\IBM\JazzTeamServer406\server\tomcat"
Using JAVA_HOME: ""
Using JRE_HOME: ""
Using JVM: "auto"
The service 'tomcat7' has been installed.
4. After setting all the other settings as per the info center guide. Stopped the RRC server using Stop Script then restarted the server and in the services console the apache service appear to be in the Stopped State.
It is throwing the below error when tried to start.
![]() |
5 answers
![]()
As you can see, the installer could not pick up a Java runtime when it installed the service. Without it, Tomcat cannot run. You can remove the service, add the environment variable before running the installer again. You can also follow the steps below.
1. Run tomcat\bin\tomcat7w.exe to launch the control panel. 2. Switch to the Java tab. 3. Uncheck "Use Default". 4. Specify the correct JVM. In your case, it should be E:\Program Files\IBM\JazzTeamServer406\server\jre\bin\j9vm\jvm.dll 5. Click OK to save changes and close the control panel. 6. Start the service. |
![]()
Hi,
After reducing the -Xmx and -Xms value to 2G from 4G. After restarting the server when verified the Apache Tomcat Service start running.
Thanks for the suggestion.
|