Hi, I'm installing tomcat in kind of a strange way (I'll explain why in a postscript), and I'm having trouble getting the service to start and stop consistently.
I'd appreciate any advice on how to get this working, or a better procedure that meets the constraints under which I must work. Here is how I'm doing it. 1) Reboot. 2) Install tomcat to the default location. It shows up in the services panel as a manual service, not running. C:\>apache-tomcat-5.5.26.exe /S At this point, I can start the service using the windows services panel. However, when I try to stop it the same way, I get this dialog: Could not stop the Apache tomcat Service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely fashion. There is no event in the Windows Event Viewer (under System or anywhere else) matching this error. The end of jakarta_service_20080310.log looks like this: [2008-03-10 15:06:07] [info] Starting service... [2008-03-10 15:06:09] [info] Service started in 1298 ms. [2008-03-10 15:06:12] [info] Stopping service... Despite the error, the service appears to be stopped, and I can start it again from the services panel. 3) Copy msvcr71.dll (7.10.3052.4) from C:\WINDOWS\system32 to C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin 4) I previously extracted some of the .bat files startup.bat shutdown.bat catalina.bat setclasspath.bat from a zipped copy of tomcat 5.5.26 and saved them away. Copy those four .bat files into C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin Note: steps 3 and 4 do not help the problems described in step 2. 5) Stop the service (an unnecessary step) and delete the service. C:\>"C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe" //SS//Tomcat5 C:\>"C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe" //DS//Tomcat5 6) Reinstall the service with the options I want. C:\>"C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe" //IS//Tomcat5 --DisplayName="Apache Tomcat 5.5" --Install="C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe" --Description="Apache Tomcat 5.5.26 Server - http://tomcat.apache.org/" --Jvm=auto --Startup auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.BootStrap --StartParams=start --StopClass=org.apache.catalina.startup.BootStrap --StopParams=stop --JvmOptions=-Xrs;-Xms256m;-Xmx512m;-Djava.awt.headless=true --LogPath="C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs --StdOutput="C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\stdout.log" --StdError="C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\stderr.log" The problem is that after this sequence of steps is finished, the service is present in the services control panel, and appears to have all the options I want, but it is not started. I cannot start the service. If I try to start it from the services panel, I get this error: Windows could not start the Apache Tomcat 5.5 on Local Computer. for more information, review the System Event Log. The System Event Log has this event, ID = 7024 The Apache Tomcat 5.5 service terminated with service-specific error 0 (0x0). For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. The tomcat logs are basically empty - nothing of use. Why am I doing this strange procedure? -------------------------------------- We can't count on unzip utilities being available on the customers' servers since we have to support very old versionsof windows (e.g. Windows 2000), so I need to use the Windows installer. My management is against installing our own unzip utility, and they also require silent installation. I plan to wrap all these calls in a C++ executable and call it from our installer. That way, when customers install our product, Tomcat is installed and configured along with it. We cannot ask our customers to configure tomcat themselves. I devised this procedure from following this list and from http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html We have done something roughly similar for Tomcat 4.1.x in the past, but we are upgrading to tomcat 5.5.26 now, and the installer command line options that used to work no longer do. Settings and Configuration -------------------------- I am using Tomcat 5.5.26, downloaded from tomcat.apache.org, and I am running on Windows XP SP2. I am using JDK 1.5.0_12. My environment has: CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.5 JAVA_HOME=C:\Program Files\Java\jre1.5.0_12 C:\>set ALLUSERSPROFILE=C:\Documents and Settings\All Users ANT_HOME=c:\ant APPDATA=C:\Documents and Settings\echawkes\Application Data CATALINA_HOME=C:\Program Files\Apache Software Foundation\Tomcat 5.5 CLASSPATH=.;C:\Program Files\Java\jre1.5.0_12\lib\ext\QTJava.zip CLIENTNAME=Console CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=EHAWKES-9439 ComSpec=C:\WINDOWS\system32\cmd.exe FP_NO_HOST_CHECK=NO INCLUDE=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\include\ JAVA_HOME=C:\Program Files\Java\jre1.5.0_12 LIB=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\ LOGONSERVER=\\SVL0DC04 MMCommonAppDataRoot=C:\Documents and Settings\All Users\Application Data\Avaya M odular Messaging MM_MSXML_APARTMENT=1 NUMBER_OF_PROCESSORS=2 OS=Windows_NT Path=C:\Program Files\Avaya Modular Messaging\Common;C:\Program Files\Avaya Modu lar Messaging\Common;C:\Program Files\Common Files\Avaya Modular Messaging;C:\Pe rl\bin\;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\ Wbem;C:\ bin;c:\ant;c:\ant\bin;C:\Program Files\Perforce;C:\Program Files\SonicWallES;"C: \Program Files\MailFrontier";C:\Program Files\ATI Technologies\ATI.ACE\;C:\Progr am Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem \ PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0403 ProgramFiles=C:\Program Files PROMPT=$P$G QTJAVA=C:\Program Files\Java\jre1.5.0_12\lib\ext\QTJava.zip SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\DOCUME~1\echawkes\LOCALS~1\Temp TMP=C:\DOCUME~1\echawkes\LOCALS~1\Temp UMCommon=C:\Program Files\Avaya Modular Messaging\Common USERDNSDOMAIN=SV.US.SONICWALL.COM USERDOMAIN=SV USERNAME=echawkes USERPROFILE=C:\Documents and Settings\echawkes VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\ VSCOMNTOOLS="C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\" windir=C:\WINDOWS __COMPAT_LAYER=EnableNXShowUI Thanks, Eric --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]