Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: Really dumb question -- how do I set up Tomcat 5 to run as a service on NT?

Bill Barker

2004-01-03

Replies:


"Jacob Kjome" <hoju@(protected)
news:5.2.1.1.0.20040103020310.02ba6d20@(protected)...
> Hi Bill,
>
> One quick follow-up to add to my previous comments...
>
> When I used to use the old JavaService tomcat.exe (in Tomcat-4.x.xx), each
> time I started Tomcat, the stdout.log would be wiped clean upon
> startup. With procrun, stdout never gets cleaned up. I would actually
> prefer this behavior since the log can fill up over time and can get
pretty
> huge which is undesireable. All the other logs are rolled to account for
> this, but stdout will just end up one giant log which has to be manually
> deleted in order to wipe it clean.
>
> So, should procrun be clearing the stdout.log (likewise, stderr.log, but
> hardly any logging goes to that as I've seen so far) by default as is my
> preferred behavior? Is it (or should it be) configurable via setup of the
> service?

Sounds like something that sould be considered as an enhansment :).

>
> Jake
>
> At 01:45 AM 1/3/2004 -0600, you wrote:
> >Hi Bill,
> >
> >Couple suggestions and a question...
> >
> >First, the service.bat script should really be setting -Djava.io.tmpdir,
> >just as the catalina.bat script does. Additionally, unless you provide
> >%JAVA_HOME%\lib\tools.jar to the --ImagePath, JSP compilation will fail,
> >although you might be fooled in cases where JSP's were pre-compiled and
> >mapped as servlets. Try out a plain-jane non-precompiled JSP. Probably
> >also dump the contents of the work directory just to be sure.
> >
> >Now for the question. How does one tell the service to use the -server
> >VM? I've tried setting -server as one of the --JavaOptions, but that
> >causes the server not to start. I've also tried doing...
> >--Java "%JAVA_HOME%\jre\bin\server\jvm.dll". That seems to work, but
then
> >logging (at least to stdout.log) no longer works.
> >
> >I assume that "--Java java" is just going to start up the default client
> >VM, correct? There's got to be a way to use the -server switch and not
> >interfere with the service starting or logging to stdout stopping,
> >otherwise this should be considered a bug in the procrun daemon.
> >
> >Jake
> >
> >At 07:01 PM 1/2/2004 -0800, you wrote:
> >>The instructions to do it manually are at
> >>http://jakarta.apache.org/commons/daemon/procrun.html. There is also a
new
> >>'service.bat' file in the CVS
>
>>http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/bin
/service.bat,
> >>that simplifies the process of manually installing Tomcat as a service.
> >>
> >>"Chang, Betty" <bchang@(protected)
> >>news:D0E6FE5581932248B4E0B496322D10771C3F6C@(protected)...
> >>Hi -
> >>
> >>
> >>
> >>I've looked through the docs, and it says the following:
> >>
> >>"Tomcat will be installed as a Windows NT/2k/XP service no matter what
> >>setting is selected."
> >>
> >>
> >>
> >>However, I never ran an installation program - I just unzipped a file.
> >>What do I run to install Tomcat 5 as a service? I don't see an install
> >>program.
> >>
> >>
> >>
> >>Please forgive if this was a really dumb question. I did try to scour
> >>through the docs -- but a lot of the stuff is on the older versions of
> >>Tomcat.
> >>
> >>
> >>
> >>Thanks
> >>
> >>
> >>
> >>Betty
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> >>For additional commands, e-mail: tomcat-user-help@(protected)
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> >For additional commands, e-mail: tomcat-user-help@(protected)




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.