It's all about the answers!

Ask a question

Running Jazz as windows service fails


Mark Martin (4811815) | asked Jun 16 '09, 2:59 p.m.
I am trying to run RTC-Enterprise-Full-2.0Beta2-Win as a service. After consulting tech note TN0010: Running Jazz Team Server in Tomcat as a Windows Service, assorted forum entries, work items, wiki postings, consulting random pan handlers on the street and having my tea leaves read in an effort to determine the current config settings, I came up with this for my Tomcat properties:

-Dcatalina.base=D:\IBM\JazzTeamServer\server\tomcat
-Dcatalina.home=D:\IBM\JazzTeamServer\server\tomcat
-Djava.endorsed.dirs=D:\IBM\JazzTeamServer\server\tomcat\common\endorsed
-Djava.io.tmpdir=D:\IBM\JazzTeamServer\server\tomcat\temp
-DJAZZ_HOME=file:///D:/IBM/JazzTeamServer/server/conf
-Djava.awt.headless=true
-Dorg.eclipse.emf.ecore.plugin.EcorePlugin.doNotLoadResourcesPlugin=true
-Dcom.ibm.team.repository.tempDir=C:\TEMP

The only result from trying to start the service is the following entry from the jakarta_service log:
Running Service...
Starting service...
%1 is not a valid Win32 application.
Failed creating java D:\IBM\JazzTeamServer\server\jre\bin\j9vm\jvm.dll
ServiceStart returned 1
Run service finished.
Procrun finished.

The installation appears to work starting it from the Start menu. Any suggestions?

4 answers



permanent link
Sacha Perret-Gentil (6121) | answered Jun 22 '09, 6:37 a.m.
I have the 2.0 RC3.

I have the same error message, I was guessing if the path contains spaces cand be the origine of my problem but mmartin has no space in his path:

My install is in default location :
C:\Program Files (x86)\IBM\JazzTeamServer\server\...

Has somebody any idea ?

permanent link
Sacha Perret-Gentil (6121) | answered Jul 01 '09, 10:39 a.m.
Hi,

I have installed final 2.0 :

Jazz Team Server Express 2.0 (I20090618-1753)
using the following package :
RTC-Express-Full-2.0-Win64-Local.zip

As I'm installing RTC on a Win 2008 Server x64 I have downloaded the Win64 version.

I have carefully read the following doc : http://jazz.net/library/technote/72
and configured as stated in this doc.

And finally when I try to start the service fails.

I get the same error as mmartin :

Running Service...
Starting service...
%1 is not a valid Win32 application.
Failed creating java C:\IBM\JazzTeamServer\server\jre\bin\j9vm\jvm.dll
ServiceStart returned 1
Run service finished.
Procrun finished.

Searching for "%1 is not a valid Win32 application." on google I found it's due to problem with Tomcat on x64.

I found a workaround : replacing tomcat5.exe with the following version :
https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/tomcat5.exe

Replacing this file solve the startup error of the tomcat5 service.

As a Jazz RTC server is a critical tool for a developer team I would appreciate an advice (or comment) of IBM guys about this workaround.

Regards

Sacha Perret-Gentil

permanent link
Stephanie Bagot (2.1k1513) | answered Dec 02 '09, 1:23 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi,
you need to configure the tomcat5w.exe properties to show the proper file location of the jvm.dll. This error means that the file cannot be found.
Please search on the Information Center or on Jazz Technotes for further help.

Stephanie

Hi,

I have installed final 2.0 :

Jazz Team Server Express 2.0 (I20090618-1753)
using the following package :
RTC-Express-Full-2.0-Win64-Local.zip

As I'm installing RTC on a Win 2008 Server x64 I have downloaded the Win64 version.

I have carefully read the following doc : http://jazz.net/library/technote/72
and configured as stated in this doc.

And finally when I try to start the service fails.

I get the same error as mmartin :

Running Service...
Starting service...
%1 is not a valid Win32 application.
Failed creating java C:\IBM\JazzTeamServer\server\jre\bin\j9vm\jvm.dll
ServiceStart returned 1
Run service finished.
Procrun finished.

Searching for "%1 is not a valid Win32 application." on google I found it's due to problem with Tomcat on x64.

I found a workaround : replacing tomcat5.exe with the following version :
https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin/amd64/tomcat5.exe

Replacing this file solve the startup error of the tomcat5 service.

As a Jazz RTC server is a critical tool for a developer team I would appreciate an advice (or comment) of IBM guys about this workaround.

Regards

Sacha Perret-Gentil

permanent link
Larry McCarthy (2102224) | answered Mar 15 '10, 12:03 a.m.
Hi,
you need to configure the tomcat5w.exe properties to show the proper file location of the jvm.dll. This error means that the file cannot be found.
Please search on the Information Center or on Jazz Technotes for further help.

Stephanie


Yeah, um, Sacha was working from Tech Note TN0010. I tried it, too. The Tech Note is out of date, and getting out-of-dater with every release and iFix. For example, the T/N says the jvm you need to put in the Tomcat config is at
C:\jazz\server\win32\ibm-java2-i386-50\jre\bin\j9vm\jvm.dll
But, (on my RTCp 2.0 Jazz server, at least), it's actually at
C:\jazz\server\jre\bin\j9vm\jvm.dll
(where /jazz/ is the root of the Jazz install). After the first four steps, I'd already found 3 "gotchas", so ... I lost my nerve and backed out the changes.

Any hope of getting the Tech Note updated? Or can a brave and wise community member post the secret sauce?

- Larry.

Your answer


Register or 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.