..--DisplayName doesn't *have* to be {TOMCAT_HOME} of course..just a copy
paste artifact.. :DOn 28 February 2011 12:21, Savvas-Andreas Moysidis < [email protected]> wrote: > Hi Rajini, > > We use the following script ran from within {TOMCAT_HOME}\bin directory to > create service instances (assuming you are targeting Windows Server > environments..): > > cd "C:\Program Files\Apache Software Foundation\{TOMCAT_HOME}\bin" > > set CATALINA_BASE="C:\Program Files\Apache Software > Foundation\{TOMCAT_HOME}" > > rem Delete service if it already exists > rem tomcat6 //DS//your_instance_name > > tomcat6 //IS//your_instance_name --DisplayName="{TOMCAT_HOME}" > --Description="This is your instance description" > --Install="C:\Program Files\Apache Software > Foundation\{TOMCAT_HOME}\bin\tomcat6.exe" > --Classpath="C:\Program Files\Apache Software > Foundation\{TOMCAT_HOME}\bin\bootstrap.jar" > --Jvm=auto > --Startup=auto > --StartMode=jvm > --StartPath="C:\Program Files\Apache Software Foundation\{TOMCAT_HOME}" > --StopMode=jvm > --StartClass=org.apache.catalina.startup.Bootstrap > --StartParams=start > --StopClass=org.apache.catalina.startup.Bootstrap > --StopParams=stop > --StopPath="C:\Program Files\Apache Software Foundation\{TOMCAT_HOME}" > --Startup=auto > --LogPath="%CATALINA_BASE%\logs" > --StdOutput=auto > --StdError=auto > --JvmOptions="-Dcatalina.home='C:\Program Files\Apache Software > Foundation\{TOMCAT_HOME}';-Dcatalina.base=%CATALINA_BASE%;-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.endorsed.dirs='C:\Program > Files\Apache Software Foundation\{TOMCAT_HOME}\endorsed'" > > rem Copy service applet tomcat6w.exe to instance name > copy tomcat6w.exe your_instance_name.exe /Y > > > Regards, > - Savvas > > On 28 February 2011 12:15, Jan Høydahl <[email protected]> wrote: > >> You may have downloaded the wrong Tomcat package? >> >> http://lmgtfy.com/?q=tomcat+windows+service >> >> On 28. feb. 2011, at 12.25, rajini maski wrote: >> >> > Does anybody have a script to create a tomcat service? I'm >> trying >> > to set my system up to run multiple instances of tomcat at the same time >> (on >> > different ports, obviously), and can't get the service to create >> properly.I >> > tried to follow the steps mentioned in this >> > link< >> http://doc.ittrium.com/ittrium/visit/A1x66x1y1x10ddx1x68y1x1209x1x68y1x1214x1x7d >> >.. >> > But not successful in getting this thing done.. The service.bat >> > file referring to an exe that is not available in the zip. Any help or >> > suggestions? >> > >> > >> > Thanks, >> > Rajani. >> >> >
