Hi,

Installed Tomcat 5.5 and all worked fine with jdk 1.5.0_07. However need for 
installer purposes to be able to setup Tomcat as a Windows service by running a 
service.bat file. Have done the following:


1. Removed the original Tomcat service with 'tomcat5 //DS//Tomcat5'. The Tomcat 
service was removed.


2. Run the following (from Tomcat's bin directory) in a Windows batch file and 
Tomcat is installed as a Windows service:

set args=%args% --DisplayName="Tomcat 5.5"
set args=%args% --Install="C:\Program Files\Apache Software Foundation\Tomcat 
5.5\bin\tomcat5.exe" 
set args=%args% --Jvm=auto 
set args=%args% --StartMode=jvm 
set args=%args% --StopMode=jvm 
set args=%args% --StartClass=org.apache.catalina.startup.Bootstrap 
set args=%args% --StartParams=start 
set args=%args% --StopClass=org.apache.catalina.startup.Bootstrap 
set args=%args% --StopParams=stop 

echo %args%

tomcat5 //IS//Tomcat55 %args%


3. When Tomcat is now started as a Windows service from either the Windows 
Services window or by using 'net start tomcat55' the service will not start. No 
Tomcat logs are produced in the Tomcat logs directory. The Windows event log 
reports 'The Tomcat 5.5 service terminated with service-specific error 0 (0x0).'

Any suggestions or does anyone have a service.bat file that works? Need to also 
enhance the above to specify when using an installer the jdk that Tomcat should 
use with usage of the --JavaHome parameter in the service.bat file.

Thanks,

Joseph.  







      
___________________________________________________________________________________
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html

Reply via email to