tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gohil, Jayesh" <Jayesh.Go...@lionbridge.com>
Subject Tomcat5 Service.
Date Fri, 07 Apr 2006 07:29:37 GMT

> Hi,
> 
> I am using Tomcat5.0.28.I  have jdk j2sdk1.4.2_07.For some specific reason I want to
create Tomcat5 service manually.I want this service to be an automatic type.As there are two
ways to achieve this.
> 
> 1) Just call "service.bat install" from catalina home\bin.I am able to create but of
type manual.
> 
> 2) Passing Parameters to Tomcat5.exe as follows by creating a batch file (All on one
line):
> 
> ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> rem This command line installs tomcat as a service (all on one line):
> rem It will be an automatic startup service but it will not automatically start until
the next system reboot. 
> %CATALINA_HOME%\bin\tomcat5 -install "Tomcat" %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
-Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -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
> 
> rem This will start the service
> net start "Tomcat" 
> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> 
> 
> But when I use the second option it gives me an error as
> 
> [2006-03-31 13:26:24] [349  prunsrv.c] [error]
> The operation completed successfully.
> [2006-03-31 13:26:24] [1037 prunsrv.c] [error]
> Load configuration failed
> 
> Although  I am able achieve my objective with second option on Tomacat 4.1.
> 
> So please reply as soon as possible on this. 
> 
> 
> 
> Thanks
> 
> Regards,
> 
> Jayesh Gohil
> Build/SCM Engineer.
> L10NBRIDGE Technologies Pvt.Ltd.
> EXTN : 7523.
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message