Jayesh, this is not a tomcat problem, but a Windows administration
problem.  Learn how to use the MMC to manage your server.  Microsoft's
website should be able to help.  For the record, I'm a Linux guy which
is why I've never answered this question before.

--David

Gohil, Jayesh wrote:

>Guys this is the fifth time I am sending this mail..
>Is there is one who help it or is there no way to do this which will be very 
>disappointing........
>
>-----Original Message-----
>From: Gohil, Jayesh [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 07, 2006 1:00 PM
>To: users@tomcat.apache.org
>Subject: Tomcat5 Service.
>
>
>
>  
>
>>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.
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


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

Reply via email to