Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 47710 invoked from network); 11 Mar 2008 02:06:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2008 02:06:45 -0000 Received: (qmail 64047 invoked by uid 500); 11 Mar 2008 02:06:29 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 64028 invoked by uid 500); 11 Mar 2008 02:06:29 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 64017 invoked by uid 99); 11 Mar 2008 02:06:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 19:06:29 -0700 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ehawkes@sonicwall.com designates 67.115.118.12 as permitted sender) Received: from [67.115.118.12] (HELO es8000.sonicwall.com) (67.115.118.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2008 02:05:38 +0000 Received: from es8000.sonicwall.com (127.0.0.1) by es8000.sonicwall.com (MlfMTA v3.2r9) id hqnk520171sk for ; Mon, 10 Mar 2008 19:02:36 -0700 (envelope-from ) Received: from US0EXF08.us.sonicwall.com ([10.50.128.134]) by es8000.sonicwall.com (SonicWALL 6.1.0.9599) with ESMTP; Mon, 10 Mar 2008 19:02:36 -0700 Received: from us0exb09.us.sonicwall.com ([10.50.128.216]) by US0EXF08.us.sonicwall.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 10 Mar 2008 19:05:57 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Can't start tomcat 5.5.26 service on windows Date: Mon, 10 Mar 2008 19:05:57 -0700 Message-ID: <7B18F88A432A7C40ACCD9CF0EC81C42012077F@us0exb09.us.sonicwall.com> In-Reply-To: <7B18F88A432A7C40ACCD9CF0EC81C42012077D@us0exb09.us.sonicwall.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Can't start tomcat 5.5.26 service on windows Thread-Index: AciC/Z0ZxUq30cYlTlmYkBOZntn0uQAGDhzA References: <7B18F88A432A7C40ACCD9CF0EC81C42012077D@us0exb09.us.sonicwall.com> From: "Eric Hawkes" To: "Tomcat Users List" Cc: "Eric Hawkes" X-OriginalArrivalTime: 11 Mar 2008 02:05:57.0564 (UTC) FILETIME=[7209FFC0:01C8831C] X-Mlf-Version: 6.1.0.9599 X-Mlf-UniqueId: o200803110202360080756 X-Virus-Checked: Checked by ClamAV on apache.org Hi,=20 I tried something simpler: a plain unzip install. It still=20 doesn't work, and my web searches haven't been fruitful.=20 This is so simple, I have either missed something quite obvious,=20 or I have really screwed up my dev environment. =20 I've been working on this for quite a long time. Any help=20 would be appreciated.=20 1) I uninstalled tomcat, cleaned my registry, and rebooted.=20 2) I extracted tomcat (from .tar.gz) into=20 C:\Program Files\Apache Software Foundation\Tomcat 5.5 3) I copied msvcr71.dll to=20 C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin=20 It's also in my c:\windows\system32 directory, which is in=20 my path environment variable.=20 4) I executed this from a DOS prompt:=20 C:\>"C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe" //IS//Tomcat5 --Jvm=3Dauto --Startup auto --StartMode=3Djvm --StopMode=3Djvm --StartClass=3Dorg.apache.catalina.startup.BootStrap = --StartParams=3Dstart --StopClass=3Dorg.apache.catalina.startup.BootStrap --StopParams=3Dstop Same problem. The service shows up in the Windows Services panel as Tomcat5, and it is Automatic, but it is not started. The status=20 field is blank. =20 I can't start the tomcat service from the windows services panel. =20 When I try, I get this error dialog:=20 Windows could not start the Tomcat5 on Local Computer. =20 For more information, review the System Event Log..... The Windows Event Log (System) has an error of Event=3D7024=20 with this description: =20 The Tomcat5 service terminated with service-specific error 0 (0x0). For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. =20 I can't start the service this way, either:=20 C:\Program Files\SonicWallES>net start Tomcat5 The Tomcat5 service is starting. The Tomcat5 service could not be started. A service specific error occurred: 0. More help is available by typing NET HELPMSG 3547. C:\Program Files\SonicWallES>NET HELPMSG 3547 A service specific error occurred: ***. EXPLANATION A service-specific error occurred. ACTION Refer to the Help or documentation for that service to determine the problem. The logs directory is completely empty, probably because I didn't=20 set those parameters this time.=20 C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs One note: I _thought_ I had this working, but I'm not sure. =20 I just upgraded to Visual Studio 2008 (which has new DLLs for=20 msvcr, etc.), and I'm wondering if that could be related.=20 Thanks,=20 Eric=20 -----Original Message----- From: Eric Hawkes=20 Sent: Monday, March 10, 2008 3:25 PM To: 'Tomcat Users List' Cc: Eric Hawkes Subject: Can't start tomcat 5.5.26 service on windows Hi,=20 I'm installing tomcat in kind of a strange way (I'll explain why in=20 a postscript), and I'm having trouble getting the service to start=20 and stop consistently. =20 I'd appreciate any advice on how to get this working, or a better=20 procedure that meets the constraints under which I must work. =20 Here is how I'm doing it. =20 1) Reboot. =20 2) Install tomcat to the default location. It shows up in the=20 services panel as a manual service, not running. =20 C:\>apache-tomcat-5.5.26.exe /S At this point, I can start the service using the windows services=20 panel. However, when I try to stop it the same way, I get this dialog:=20 Could not stop the Apache tomcat Service on Local Computer.=20 Error 1053: The service did not respond to the start or control=20 request in a timely fashion.=20 There is no event in the Windows Event Viewer (under System or=20 anywhere else) matching this error.=20 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=20 start it again from the services panel.=20 3) Copy msvcr71.dll (7.10.3052.4) from C:\WINDOWS\system32 to=20 C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin=20 4) I previously extracted some of the .bat files=20 startup.bat=20 shutdown.bat=20 catalina.bat=20 setclasspath.bat=20 from a zipped copy of tomcat 5.5.26 and saved them away. =20 Copy those four .bat files into=20 C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin=20 Note: steps 3 and 4 do not help the problems described in step 2.=20 5) Stop the service (an unnecessary step) and delete the service. =20 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. =20 C:\>"C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe" //IS//Tomcat5=20 --DisplayName=3D"Apache Tomcat 5.5"=20 --Install=3D"C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin\tomcat5.exe"=20 --Description=3D"Apache Tomcat 5.5.26 Server - = http://tomcat.apache.org/"=20 --Jvm=3Dauto --Startup auto=20 --StartMode=3Djvm --StopMode=3Djvm=20 --StartClass=3Dorg.apache.catalina.startup.BootStrap = --StartParams=3Dstart=20 --StopClass=3Dorg.apache.catalina.startup.BootStrap --StopParams=3Dstop=20 --JvmOptions=3D-Xrs;-Xms256m;-Xmx512m;-Djava.awt.headless=3Dtrue=20 --LogPath=3D"C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs = --StdOutput=3D"C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\stdout.log"=20 --StdError=3D"C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\stderr.log" The problem is that after this sequence of steps is finished,=20 the service is present in the services control panel, and appears=20 to have all the options I want, but it is not started. =20 I cannot start the service. =20 If I try to start it from the services panel, I get this error:=20 Windows could not start the Apache Tomcat 5.5 on Local Computer. =20 for more information, review the System Event Log. =20 The System Event Log has this event, ID =3D 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? =20 -------------------------------------- We can't count on unzip utilities being available on the customers'=20 servers since we have to support very old versionsof windows=20 (e.g. Windows 2000), so I need to use the Windows installer. =20 My management is against installing our own unzip utility, and they=20 also require silent installation.=20 I plan to wrap all these calls in a C++ executable and call it=20 from our installer. That way, when customers install our product,=20 Tomcat is installed and configured along with it. We cannot ask=20 our customers to configure tomcat themselves.=20 I devised this procedure from following this list and from=20 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=20 past, but we are upgrading to tomcat 5.5.26 now, and the installer=20 command line options that used to work no longer do. =20 Settings and Configuration -------------------------- I am using Tomcat 5.5.26, downloaded from tomcat.apache.org,=20 and I am running on Windows XP SP2. I am using JDK 1.5.0_12.=20 My environment has: CATALINA_HOME=3DC:\Program Files\Apache Software Foundation\Tomcat 5.5 JAVA_HOME=3DC:\Program Files\Java\jre1.5.0_12 C:\>set ALLUSERSPROFILE=3DC:\Documents and Settings\All Users ANT_HOME=3Dc:\ant APPDATA=3DC:\Documents and Settings\echawkes\Application Data CATALINA_HOME=3DC:\Program Files\Apache Software Foundation\Tomcat 5.5 CLASSPATH=3D.;C:\Program Files\Java\jre1.5.0_12\lib\ext\QTJava.zip CLIENTNAME=3DConsole CommonProgramFiles=3DC:\Program Files\Common Files COMPUTERNAME=3DEHAWKES-9439 ComSpec=3DC:\WINDOWS\system32\cmd.exe FP_NO_HOST_CHECK=3DNO INCLUDE=3DC:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\include\ JAVA_HOME=3DC:\Program Files\Java\jre1.5.0_12 LIB=3DC:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\ LOGONSERVER=3D\\SVL0DC04 MMCommonAppDataRoot=3DC:\Documents and Settings\All Users\Application Data\Avaya M odular Messaging MM_MSXML_APARTMENT=3D1 NUMBER_OF_PROCESSORS=3D2 OS=3DWindows_NT Path=3DC:\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=3D.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=3Dx86 PROCESSOR_IDENTIFIER=3Dx86 Family 15 Model 4 Stepping 3, GenuineIntel PROCESSOR_LEVEL=3D15 PROCESSOR_REVISION=3D0403 ProgramFiles=3DC:\Program Files PROMPT=3D$P$G QTJAVA=3DC:\Program Files\Java\jre1.5.0_12\lib\ext\QTJava.zip SESSIONNAME=3DConsole SystemDrive=3DC: SystemRoot=3DC:\WINDOWS TEMP=3DC:\DOCUME~1\echawkes\LOCALS~1\Temp TMP=3DC:\DOCUME~1\echawkes\LOCALS~1\Temp UMCommon=3DC:\Program Files\Avaya Modular Messaging\Common USERDNSDOMAIN=3DSV.US.SONICWALL.COM USERDOMAIN=3DSV USERNAME=3Dechawkes USERPROFILE=3DC:\Documents and Settings\echawkes VS90COMNTOOLS=3DC:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\ VSCOMNTOOLS=3D"C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\" windir=3DC:\WINDOWS __COMPAT_LAYER=3DEnableNXShowUI Thanks,=20 Eric=20 --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org