Setting up Tomcat as a Windows Service for RTC2.0
I found a technote in the library for additional values that needed to be added to the service values for RQM 2.0 .. the service starts up ok, but when I attempt to launch my URL I get an error for "server repository" information cannot be found.
If I restart using the "batch" file .. there a no errors at all, which leads me to believe that I'm missing some parameters in the windows tomcat configuration.
Here's what I have .. can anybody tell me what I'm missing?
-Dcatalina.base=D:\Program Files\IBM\JazzTeamServer20\server\tomcat
-Dcatalina.home=D:\Program Files\IBM\JazzTeamServer20\server\tomcat
-Djava.endorsed.dirs=D:\Program Files\IBM\JazzTeamServer20\server\tomcat\common\endorsed
-Djava.io.tmpdir=D:\Program Files\IBM\JazzTeamServer20\server\tomcat\temp
-Dcom.ibm.team.server.configURL=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/teamserver.properties
-Dcom.ibm.team.repository.provision.profile=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/provision_profiles
-Dlog4j.configuration=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/log4j.properties
-DJAZZ_HOME=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz
-Djava.awt.headless=true
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=%TEMP%
If I restart using the "batch" file .. there a no errors at all, which leads me to believe that I'm missing some parameters in the windows tomcat configuration.
Here's what I have .. can anybody tell me what I'm missing?
-Dcatalina.base=D:\Program Files\IBM\JazzTeamServer20\server\tomcat
-Dcatalina.home=D:\Program Files\IBM\JazzTeamServer20\server\tomcat
-Djava.endorsed.dirs=D:\Program Files\IBM\JazzTeamServer20\server\tomcat\common\endorsed
-Djava.io.tmpdir=D:\Program Files\IBM\JazzTeamServer20\server\tomcat\temp
-Dcom.ibm.team.server.configURL=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/teamserver.properties
-Dcom.ibm.team.repository.provision.profile=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/provision_profiles
-Dlog4j.configuration=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/log4j.properties
-DJAZZ_HOME=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz
-Djava.awt.headless=true
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=%TEMP%
10 answers
The space between Program and Files in the Program Files directory name was causing problems for me. I installed one level up on the directory tree, no spaces in directory names, and it worked fine.
HTH.
HTH.
I found a technote in the library for additional values that needed to be added to the service values for RQM 2.0 .. the service starts up ok, but when I attempt to launch my URL I get an error for "server repository" information cannot be found.
If I restart using the "batch" file .. there a no errors at all, which leads me to believe that I'm missing some parameters in the windows tomcat configuration.
Here's what I have .. can anybody tell me what I'm missing?
-Dcatalina.base=D:\Program Files\IBM\JazzTeamServer20\server\tomcat
-Dcatalina.home=D:\Program Files\IBM\JazzTeamServer20\server\tomcat
-Djava.endorsed.dirs=D:\Program Files\IBM\JazzTeamServer20\server\tomcat\common\endorsed
-Djava.io.tmpdir=D:\Program Files\IBM\JazzTeamServer20\server\tomcat\temp
-Dcom.ibm.team.server.configURL=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/teamserver.properties
-Dcom.ibm.team.repository.provision.profile=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/provision_profiles
-Dlog4j.configuration=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/log4j.properties
-DJAZZ_HOME=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz
-Djava.awt.headless=true
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=%TEMP%
The space between Program and Files in the Program Files directory name was causing problems for me. I installed one level up on the directory tree, no spaces in directory names, and it worked fine.
HTH.
HTH.
I found a technote in the library for additional values that needed to be added to the service values for RQM 2.0 .. the service starts up ok, but when I attempt to launch my URL I get an error for "server repository" information cannot be found.
If I restart using the "batch" file .. there a no errors at all, which leads me to believe that I'm missing some parameters in the windows tomcat configuration.
Here's what I have .. can anybody tell me what I'm missing?
-Dcatalina.base=D:\Program Files\IBM\JazzTeamServer20\server\tomcat
-Dcatalina.home=D:\Program Files\IBM\JazzTeamServer20\server\tomcat
-Djava.endorsed.dirs=D:\Program Files\IBM\JazzTeamServer20\server\tomcat\common\endorsed
-Djava.io.tmpdir=D:\Program Files\IBM\JazzTeamServer20\server\tomcat\temp
-Dcom.ibm.team.server.configURL=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/teamserver.properties
-Dcom.ibm.team.repository.provision.profile=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/provision_profiles
-Dlog4j.configuration=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz/log4j.properties
-DJAZZ_HOME=file:///D:/Program Files/IBM/JazzTeamServer20/server/conf/jazz
-Djava.awt.headless=true
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=%TEMP%
Hi,
The space in the path was not a problem for me, but ...
Are you installing on a x64 Windows ?
I yes there is a known issue on x64, see discussion of : https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=85748
Sacha
OK so I moved the everything up a directory so the parameters are now pointing to d:\jazzteamserver\..... etc .. no spaces between the file names - this resolved the error on not being able to find the log4j properties ...
the Service still starts up ok no errors in the logs, but when I load RTC on the web and login, it reports a cannot find server status information ...
Here's the error on that page which now suggests a java error .... which is odd, as manual service status is still ok no errors with all the same directory structure etc .
Error log :
Error fetching server status information.Hide Details
java.lang.Exception
com.ibm.team.repository.common.transport.ServerHttpUtil.serializeError(ServerHttpUtil.java:1057)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleException(AbstractTeamServerServlet.java:1143)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1603)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1471)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:121)
com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:54)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Thread.java:810)
What are you using for a database?
OK so I moved the everything up a directory so the parameters are now pointing to d:\jazzteamserver\..... etc .. no spaces between the file names - this resolved the error on not being able to find the log4j properties ...
the Service still starts up ok no errors in the logs, but when I load RTC on the web and login, it reports a cannot find server status information ...
Here's the error on that page which now suggests a java error .... which is odd, as manual service status is still ok no errors with all the same directory structure etc .
Error log :
Error fetching server status information.Hide Details
java.lang.Exception
com.ibm.team.repository.common.transport.ServerHttpUtil.serializeError(ServerHttpUtil.java:1057)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleException(AbstractTeamServerServlet.java:1143)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1603)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1471)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:121)
com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:54)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Thread.java:810)
Hi,
The space in the path was not a problem for me, but ...
Are you installing on a x64 Windows ?
I yes there is a known issue on x64, see discussion of : https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=85748
Sacha
OK so I moved the everything up a directory so the parameters are now pointing to d:\jazzteamserver\..... etc .. no spaces between the file names - this resolved the error on not being able to find the log4j properties ...
the Service still starts up ok no errors in the logs, but when I load RTC on the web and login, it reports a cannot find server status information ...
Here's the error on that page which now suggests a java error .... which is odd, as manual service status is still ok no errors with all the same directory structure etc .
Error log :
Error fetching server status information.Hide Details
java.lang.Exception
com.ibm.team.repository.common.transport.ServerHttpUtil.serializeError(ServerHttpUtil.java:1057)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleException(AbstractTeamServerServlet.java:1143)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1603)
com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1471)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:121)
com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:54)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
java.lang.Thread.run(Thread.java:810)
have you looked at
http://jazz.net/library/techtip/72
and
http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/index.jsp?topic=/com.ibm.team.install.doc/topics/t_running_jazz_in_tomcat_as_win_service.html
yet?
Yes on the tech tip as thats were i got the info from for the additional lines for RTC 2.0 .. this is wrong however : Change the 'Java Virtual Machine' path to be C:\jazz\server\win32\ibm-java2-i386-50\jre\bin\j9vm\jvm.dll. -- as that applies to 1.x and not 2.0 as there is a new directly JRE under server which I'm pointing too
Will check out the other notation
have you looked at
http://jazz.net/library/techtip/72
and
http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/index.jsp?topic=/com.ibm.team.install.doc/topics/t_running_jazz_in_tomcat_as_win_service.html
yet?
All the information in both technotes is identical to what I have in the configuration file .. the only difference is where the jvm is loaded from which per previous reply ...
have you looked at
http://jazz.net/library/techtip/72
and
http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/index.jsp?topic=/com.ibm.team.install.doc/topics/t_running_jazz_in_tomcat_as_win_service.html
yet?
All the information in both technotes is identical to what I have in the configuration file .. the only difference is where the jvm is loaded from which per previous reply ...
I have finally resolved this ... despite the technotes and other information that tell you what should be there, it appears to be missing three critical entries that enable tomcat to run as a service correctly and see the repository database (if you're using derby)
I added these three lines to the tomcat services panel :
-Dcom.ibm.team.server.configURL=file:///D:/JazzTeamServer20/server/conf/jazz/teamserver.properties
-Dcom.ibm.team.repository.provision.profile=file:///D:/JazzTeamServer20/server/conf/jazz/provision_profiles
-Dlog4j.configuration=file:///D:/JazzTeamServer20//server/conf/jazz/log4j.properties
Everything now runs correctly.
I added these three lines to the tomcat services panel :
-Dcom.ibm.team.server.configURL=file:///D:/JazzTeamServer20/server/conf/jazz/teamserver.properties
-Dcom.ibm.team.repository.provision.profile=file:///D:/JazzTeamServer20/server/conf/jazz/provision_profiles
-Dlog4j.configuration=file:///D:/JazzTeamServer20//server/conf/jazz/log4j.properties
Everything now runs correctly.
I am having a similar problem. I just downloaded 2.0.0.2 iFix1 and I get CreateJavaVM Failed
Could you post the complete Java Options section that works for you?
I am on XP (32 bit), so it should work as described out of the box, but it sure doesn't :(