Ok, I got it to work. It was a little tricky, though. So I'll try to explain how it 
works for me:

First of all, I am using Windows 2000, Tomcat 4.0.1, Cocoon 2.0 (and some 1.3.xx 
Apache which
is less important for this matter).

It was not necessary to download the JavaService binary from alexandriasc.com, Tomcat 4
comes with everything that is required for installation as a service - alas you need 
their actual
(very looooong) command to install it properly on your system.

Second I have set the environment variables JAVA_HOME (e.g. c:\j2sdk1.4.0-beta3)
and CATALINA_HOME (e.g. c:\jakarta-tomcat-4.0.1)

I created two empty textfiles named 'stderr.log' and 'stdout.log' in 
{TOMCAT_HOME}\logs.
Then I made sure I had the 'tomcat.exe' in {TOMCAT_HOME}\bin.
In the same path I created a textfile named 'install.bat' with the following content:

tomcat.exe -install Tomcat
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_HOME%\common\lib\servlet.jar;%JAVA_
HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -start 
org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out 
%CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log

Please note, that this is ONE command with only ONE line and therefore no linebreaks 
in between.

I also created the 'uninstall.bat' with this line:

tomcat.exe -uninstall Tomcat


Now I only needed to execute 'install.bat' to do what the filename says (install 
Tomcat as NT-Service, of course).
Executing 'uninstall.bat' will unregister the service (but why?).

I hope someone will find this useful. I also suggest to include installation 
batchfiles (not necessarily mine) for NT in the
original Tomcat distribution, because 'tomcat.exe' feels a little useless without this 
help (are there any Cocoon
developers listening?).

Ciao

Uwe Stelzer




----- Original Message -----
From: "Colin Britton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 29, 2001 10:06 PM
Subject: Re: installing Tomcat 4 (including Cocoon2) as NT-Service


> The Tomcat.exe is the binary from an application called JavaService. The
> docs are available at
> http://www.alexandriasc.com/software/JavaService/documentation.html .
>
> rgds
> CB
>
> ----- Original Message -----
> From: "Carlos Araya" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, December 29, 2001 4:02 PM
> Subject: Re: installing Tomcat 4 (including Cocoon2) as NT-Service
>
>
> > In the Tomcat directory, there is startup.bat and a shutdown.bat that you
> > can use to supply the parameters to tomcat.exe.
> >
> > As for Cocoon, it's a traight installation
> >
> > When you get it done, can you please document it and send it back to the
> > list?
> >
> > On 12/29/01 12:36 PM, "Uwe Stelzer" <[EMAIL PROTECTED]> wrote:
> >
> > > How can I get this done? There is a Tomcat.exe in the 'bin' directory
> which
> > > expects loooots of parameters.
> > > but there is no documentation (I suppose).
> > >
> > >
> > > Greetings
> > >
> > > Uwe Stelzer
> > --
> > Carlos E. Araya
> > ---+ WebCT Administrator/Trainer
> >  P | California Virtual Campus
> >  - | C/O De Anza College
> >  G | 21250 Stevens Creek Blvd
> > ---+ Cupertino, CA 95014
> >
> > email               [EMAIL PROTECTED]
> > web                 http://www.cvc1.org/ (work)
> >                     http://www.silverwolf-net.net (personal)
> > phone               408 257 0420 (work)
> > PGP Fingerprint:    E629 5DFD 7EAE 4995 E9D7  3D2F 5A9F 0CE7 DFE7 1756
> >
> > Paradoxically, a refusal to 'put a monetary value on life' means that life
> > is often undervalued.
> > -- Artificial Intelligence: A Modern Approach
> >
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to