It's all about the answers!

Ask a question

How do I get TeamServer to run as a windows service?


Harleen Sahni (6642) | asked Jul 16 '07, 1:09 p.m.
Hi,

I'd like to have TeamServer run as a windows service so that it can start when the machine boots. How would I do this?

Thanks,

Harleen Sahni

4 answers



permanent link
Harleen Sahni (6642) | answered Jul 18 '07, 3:49 p.m.
I got tomcat to run with jazz as service. Just open up a command prompt up and cd to jazz/server/tomcat/bin and install tomcat as a service by running service.bat install tomcat5.

You need to configure tomcat to run jazz on the correct jvm and with the right parameters. To do so, in the same directory as service.bat open up tomcat5w.exe. Click the "Java" tab and uncheck "use default". Set the Java Virtual Machine to jazz\server\win32\ibm-java2-i386-50\jre\bin\j9vm\jvm.dll
Also, make sure the java options look like the following:
-Dcatalina.base=D:\jazz\server\tomcat
-Dcatalina.home=D:\jazz\server\tomcat
-Dcatalina.tmpdir=D:\jazz\server\tomcat\temp
-Djava.endorsed.dirs=D:\jazz\server\tomcat\common\endorsed
-Djava.io.tmpdir=D:\jazz\server\tomcat\temp
-Dcom.ibm.team.workitem.common.behavior.useCustomAccessProfiles=false
-Dcom.ibm.team.server.configURL=file:///d:/jazz/server/teamserver.properties

You probably want to increase the memory for Jazz too.

On the startup tab, set the working directory to jazz\server.

permanent link
Dominik Zalewski (2112) | answered Jan 29 '09, 4:56 a.m.
Hello all,

I installed Team Concert 1.0.1 on my windows box. I try to run it as a service. I followed

https://jazz.net/learn/LearnItem.jsp?href=content/tech-notes/jazz-team-server-0_6-running-jazz-team-server-in-tomcat-as-a-windows-service/index.html

but this seems to be for 1.0 and does not work for my version (1.0.1).

The first problem I've had after following the instructions is that I did not provide a user/pwd that the service should login to. After fixing that, the tomcat has problems running SSL extensions (see trace below). I can run Team Concert normally from batch scripts. The only difference that I've made to the instructions is my install path which is c:\Program Files\IBM (hope that the space in 'Program Files' does not cause the problem).

I figure that the problem is with libraries in IBM's JVM under lib/ext. Should I put them all into classpath when configuring service using tomcat5w.exe?

INFO: Initializing Coyote HTTP/1.1 on http-9080
2009-01-22 13:11:46 org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.io.IOException: IbmX509 KeyManagerFactory not available
at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:126)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:89)
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:293)
at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2009-01-22 13:11:46 org.apache.catalina.startup.Catalina load

permanent link
Matt Lavin (2.7k2) | answered Jan 29 '09, 9:28 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
It sounds like the IBM JVM is not being used to start Tomcat. Can you
make sure that the IBM VM is used to launch Tomcat, even when it starts
as a service?

-
Matt Lavin
Jazz Server Team


On Thu, 2009-01-29 at 09:58 +0000, dominikz wrote:
Hello all,

I installed Team Concert 1.0.1 on my windows box. I try to run it as a
service. I followed

https://jazz.net/learn/LearnItem.jsp?href=content/tech-notes/jazz-team-server-0_6-running-jazz-team-server-in-tomcat-as-a-windows-service/index.html

but this seems to be for 1.0 and does not work for my version
(1.0.1).

The first problem I've had after following the instructions is that I
did not provide a user/pwd that the service should login to. After
fixing that, the tomcat has problems running SSL extensions (see
trace below). I can run Team Concert normally from batch scripts. The
only difference that I've made to the instructions is my install path
which is c:\Program Files\IBM (hope that the space in 'Program Files'
does not cause the problem).

I figure that the problem is with libraries in IBM's JVM under
lib/ext. Should I put them all into classpath when configuring
service using tomcat5w.exe?

INFO: Initializing Coyote HTTP/1.1 on http-9080
2009-01-22 13:11:46 org.apache.coyote.http11.Http11BaseProtocol init
SEVERE: Error initializing endpoint
java.io.IOException: IbmX509 KeyManagerFactory not available
at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:126)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:89)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:293)
at
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2009-01-22 13:11:46 org.apache.catalina.startup.Catalina load

permanent link
Dominik Zalewski (2112) | answered Feb 05 '09, 6:05 a.m.
Unfortunatelly I don't have any other ideas on how should I do this. Currently I set the service using tomcat5w.exe (see below). I could not find any documentation for tomcat5w.exe. I have Team Concert installed on C:\Program Files\JazzTeamServer.


- on java tab:
* Java virtual machine: C:\Program
Files\IBM\JazzTeamServer\server\win32\ibm-java2-i386-50\jre\bin\classic\jvm.dll
* Java classpath: C:\Program
Files\IBM\JazzTeamServer\server\tomcat\bin\bootstrap.jar
* Java options

-Dlog4j.configuration=file:///"C:/Program
Files/IBM/JazzTeamServer/server/log4j.properties"
-Dcatalina.base=file:///"C:/Program Files/IBM/JazzTeamServer/server/tomcat"
-Dcatalina.home=file:///"C:/Program Files/IBM/JazzTeamServer/server/tomcat"
-Djava.endorsed.dirs=file:///"C:/Program
Files/IBM/JazzTeamServer/server/tomcat/common/endorsed"
-Djava.io.tmpdir=file:///"C:/Program
Files/IBM/JazzTeamServer/server/tomcat/temp"
-Dcom.ibm.team.server.configURL="file:///C:/Program
Files/IBM/JazzTeamServer/server/teamserver.properties"
-Dcom.ibm.team.repository.provision.profile=file:///"C:/Program
Files/IBM/JazzTeamServer/server/provision_profiles"
-Djava.awt.headless=true
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=%TEMP%

Your answer


Register or to post your answer.