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

Problem in setting up Jazz as a service in Tomcat

I am trying to setup Jazz service in Tomcat but on executing "C:\jazz\server\tomcat\bin\service.bat install" on command prompt it is throwing an error.

-----

C:\jazz\server\tomcat\bin>service.bat install
"C:\jazz\server\tomcat"
Installing the service 'Tomcat5' ...
Using CATALINA_HOME: "C:\jazz\server\tomcat"
Using CATALINA_BASE: "C:\jazz\server\tomcat"
Using JAVA_HOME: "C:\Java\jdk1.5.0_01"
Using JVM: "C:\Java\jdk1.5.0_01"\jre\bin\server\jvm.dll

Invalid command line arguments
Failed installing 'Tomcat5' service

-----

0 votes



5 answers

Permanent link
You just need to run 'service install'

I used this page for instructions:
https://jazz.net/wiki/bin/view/Main/RunningJazzAsAService



"mapagile_tcs" <nirav> wrote in message
news:g0raos$a62$1@localhost.localdomain...
I am trying to setup Jazz service in Tomcat but on executing
"C:\jazz\server\tomcat\bin\service.bat install" on command
prompt it is throwing an error.

-----

C:\jazz\server\tomcat\bin>service.bat install
"C:\jazz\server\tomcat"
Installing the service 'Tomcat5' ...
Using CATALINA_HOME: "C:\jazz\server\tomcat"
Using CATALINA_BASE: "C:\jazz\server\tomcat"
Using JAVA_HOME: "C:\Java\jdk1.5.0_01"
Using JVM:
"C:\Java\jdk1.5.0_01"\jre\bin\server\jvm.dll

Invalid command line arguments
Failed installing 'Tomcat5' service

-----

0 votes


Permanent link
I was trying the same but am getting the error on the very first step.

You just need to run 'service install'

I used this page for instructions:
https://jazz.net/wiki/bin/view/Main/RunningJazzAsAService



"mapagile_tcs" <nirav> wrote in message
news:g0raos$a62$1@localhost.localdomain...
I am trying to setup Jazz service in Tomcat but on executing
"C:\jazz\server\tomcat\bin\service.bat install" on command
prompt it is throwing an error.

-----

C:\jazz\server\tomcat\bin>service.bat install
"C:\jazz\server\tomcat"
Installing the service 'Tomcat5' ...
Using CATALINA_HOME: "C:\jazz\server\tomcat"
Using CATALINA_BASE: "C:\jazz\server\tomcat"
Using JAVA_HOME: "C:\Java\jdk1.5.0_01"
Using JVM:
"C:\Java\jdk1.5.0_01"\jre\bin\server\jvm.dll

Invalid command line arguments
Failed installing 'Tomcat5' service

-----

0 votes


Permanent link
If you had a tomcat registered before you need to remove it first.

"mapagile_tcs" <nirav> wrote in message
news:g0ttvb$dt6$1@localhost.localdomain...
I was trying the same but am getting the error on the very first
step.

Peter Haumerwrote:
You just need to run 'service install'

I used this page for instructions:
https://jazz.net/wiki/bin/view/Main/RunningJazzAsAService



"mapagile_tcs" <nirav> wrote in message
news:g0raos$a62$1@localhost.localdomain...
I am trying to setup Jazz service in Tomcat but on executing
"C:\jazz\server\tomcat\bin\service.bat install" on
command
prompt it is throwing an error.

-----

C:\jazz\server\tomcat\bin>service.bat install
"C:\jazz\server\tomcat"
Installing the service 'Tomcat5' ...
Using CATALINA_HOME: "C:\jazz\server\tomcat"
Using CATALINA_BASE: "C:\jazz\server\tomcat"
Using JAVA_HOME: "C:\Java\jdk1.5.0_01"
Using JVM:
"C:\Java\jdk1.5.0_01"\jre\bin\server\jvm.dll

Invalid command line arguments
Failed installing 'Tomcat5' service

-----

0 votes


Permanent link
Thanks a lot for your reply.

The service was installed on machine so it was not allowing to reinstall.

I removed it using "service.bat remove" and then repeated the installation procedure.

If you had a tomcat registered before you need to remove it first.

"mapagile_tcs" <nirav> wrote in message
news:g0ttvb$dt6$1@localhost.localdomain...
I was trying the same but am getting the error on the very first
step.

Peter Haumerwrote:
You just need to run 'service install'

I used this page for instructions:
https://jazz.net/wiki/bin/view/Main/RunningJazzAsAService



"mapagile_tcs" <nirav> wrote in message
news:g0raos$a62$1@localhost.localdomain...
I am trying to setup Jazz service in Tomcat but on executing
"C:\jazz\server\tomcat\bin\service.bat install" on
command
prompt it is throwing an error.

-----

C:\jazz\server\tomcat\bin>service.bat install
"C:\jazz\server\tomcat"
Installing the service 'Tomcat5' ...
Using CATALINA_HOME: "C:\jazz\server\tomcat"
Using CATALINA_BASE: "C:\jazz\server\tomcat"
Using JAVA_HOME: "C:\Java\jdk1.5.0_01"
Using JVM:
"C:\Java\jdk1.5.0_01"\jre\bin\server\jvm.dll

Invalid command line arguments
Failed installing 'Tomcat5' service

-----

0 votes


Permanent link
Hi, there is also a Windows Resource Kit tool that can do the job quite nicely, if someone runs this on a Windows server. We have used this to run Jazz Tomcat as a service and just point to the startup batch file for Jazz.


Installation of AutoExNT

1. Using a text editor such as Notepad, create a batch file named Autoexnt.bat. Include the commands you want to run at startup in this file, such as copy files or start an application.

2. Copy the Autoexnt.bat file you just created, the Autoexnt.exe, Servmess.dll and Instexnt.exe files (in the Resource Kit) into the %SystemRoot%\System32 folder on your computer.

3. To install the service, open a command console and type: instexnt install.

Use of AutoExNT

* To test AutoExNT, open a command console and type the command net start autoexnt. You should see Autoexnt.bat file execute.

* Configure your service options by clicking Start-->Program Files-->Administrative Tools-->Computer Management-->Expand Services and Applications -->click Services. Double-click the AutoExNT service

* Select Automatic in the Startup type box.

* Use the Logon As property if your autoexnt.bat file requires specific privileges to run its commands.

* If necessary, set any dependencies that AutoExNT should wait for before starting. This is handy if your application or task requires another service, such as the Workstation service, to be running before it can execute.

There is one issue with AutoExNT: It does not normally work well with applications that have interactive consoles.

0 votes

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

Question asked: May 19 '08, 3:28 a.m.

Question was seen: 6,143 times

Last updated: May 19 '08, 3:28 a.m.

Confirmation Cancel Confirm