Hi, 

I tried something simpler: a plain unzip install.  It still 
doesn't work, and my web searches haven't been fruitful. 

This is so simple, I have either missed something quite obvious, 
or I have really screwed up my dev environment.  

I've been working on this for quite a long time.  Any help 
would be appreciated. 



1) I uninstalled tomcat, cleaned my registry, and rebooted. 

2) I extracted tomcat (from .tar.gz) into 
C:\Program Files\Apache Software Foundation\Tomcat 5.5

3) I copied msvcr71.dll to 
C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin 
It's also in my c:\windows\system32 directory, which is in 
my path environment variable. 

4) I executed this from a DOS prompt: 

C:\>"C:\Program Files\Apache Software Foundation\Tomcat
5.5\bin\tomcat5.exe" //IS//Tomcat5 --Jvm=auto --Startup auto
--StartMode=jvm --StopMode=jvm
--StartClass=org.apache.catalina.startup.BootStrap --StartParams=start
--StopClass=org.apache.catalina.startup.BootStrap --StopParams=stop


Same problem.  The service shows up in the Windows Services panel as
Tomcat5, and it is Automatic, but it is not started.  The status 
field is blank.  


I can't start the tomcat service from the windows services panel.  
When I try, I get this error dialog: 

Windows could not start the Tomcat5 on Local Computer.  
For more information, review the System Event Log.....

The Windows Event Log (System) has an error of Event=7024 
with this description:  

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.
 


I can't start the service this way, either: 

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 
set those parameters this time. 
C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs


One note: I _thought_ I had this working, but I'm not sure.  
I just upgraded to Visual Studio 2008 (which has new DLLs for 
msvcr, etc.), and I'm wondering if that could be related. 


Thanks, 

Eric 



-----Original Message-----
From: Eric Hawkes 
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, 

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]

Reply via email to