Hi, Thank you for the comments.
I have two overall goals at this point: 1) I must be able to install tomcat 5.5.26 programmatically and silently as a service using tomcat5.exe 2) I must be able to start and stop the tomcat service programmatically, i.e. net start tomcat5 net stop tomcat5 as well as from the microsoft windows serices panel. I've attempted to simplify my problem again by using a very standard install and environment. I uninstalled java and tomcat, cleaned my registry, and rebooted. I then installed JDK1.5.0_12 using the GUI installer. This installed both the JDK and the JRE in the default locations C:\Program Files\Java I then unzipped tomcat 5.5.26 into C:\Program Files\Apache Software Foundation\Tomcat 5.5 and copied msvcr71.dll from c:\windows\system32 to C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin I attempted to install the service this way. It installed, but it cannot be started from the windows services panel. 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" --LogLevel=Debug Errors ------ Pretty much the same errors I've had all along. I must be closing in. If I try to start tomcat 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. tomcat5w -------- Running tomcat5w.exe shows the settings are as I intended them to be according to my command line options. I notice that the startup and shutdown tabs have empty working path and method fields. The JVM in use is the default (client) DLL. The Java Classpath field in the Java tab is also empty. The Logon tab shows the Local System account selected, and the service is not allowed to interact with the desktop. Logging ------- > A logger says what? An excellent question. Now that I have set my log level to debug, the jakarta_service log says this: [2008-03-11 14:32:16] [1334 prunsrv.c] [debug] Procrun log initialized [2008-03-11 14:32:16] [info] Procrun (2.0.3.0) started [2008-03-11 14:32:16] [532 prunsrv.c] [debug] Installing service... [2008-03-11 14:32:16] [info] Service Tomcat5 name Apache Tomcat 5.5 [2008-03-11 14:32:16] [584 prunsrv.c] [debug] Setting service description Apache Tomcat 5.5.26 Server - http://tomcat.apache.org/ [2008-03-11 14:32:16] [info] Service Tomcat5 installed [2008-03-11 14:32:16] [info] Procrun finished. [2008-03-11 14:32:37] [1334 prunsrv.c] [debug] Procrun log initialized [2008-03-11 14:32:37] [info] Procrun (2.0.3.0) started [2008-03-11 14:32:37] [info] Running Service... [2008-03-11 14:32:37] [1158 prunsrv.c] [debug] Inside ServiceMain... [2008-03-11 14:32:37] [info] Starting service... [2008-03-11 14:32:37] [385 javajni.c] [debug] Jvm Option[0] -Xrs [2008-03-11 14:32:37] [385 javajni.c] [debug] Jvm Option[1] -Xms256m [2008-03-11 14:32:37] [385 javajni.c] [debug] Jvm Option[2] -Xmx512m [2008-03-11 14:32:37] [385 javajni.c] [debug] Jvm Option[3] -Djava.awt.headless=true [2008-03-11 14:32:37] [385 javajni.c] [debug] Jvm Option[4] -Djava.class.path= [2008-03-11 14:32:37] [385 javajni.c] [debug] Jvm Option[5] vfprintf [2008-03-11 14:32:37] [443 javajni.c] [error] FindClass org/apache/catalina/startup/BootStrap failed [2008-03-11 14:32:37] [997 prunsrv.c] [error] Failed loading main org/apache/catalina/startup/BootStrap class [2008-03-11 14:32:37] [1260 prunsrv.c] [error] ServiceStart returned 3 [2008-03-11 14:32:37] [info] Run service finished. [2008-03-11 14:32:37] [info] Procrun finished. Perhaps the cause of the problem is now evident to an experienced user? I did some web searching on the bootstrap failure message, but I didn't find the answer. Questions --------- Should I be setting my classpath to include Bootstrap.jar, or have C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin in my PATH? Environment ----------- I'm running on Windows XP SP2, x86 hardware. I have the correct version of Java for my hardware and OS. I got Java from Sun's download site, and tomcat from Apache's download site. C:\Program Files\SonicWallES>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 HOMEDRIVE=C: HOMEPATH=\Documents and Settings\echawkes HOMESHARE=\\whistler\users\echawkes INCLUDE=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\include\ JAVA_HOME=C:\Program Files\Java\jdk1.5.0_12 LIB=C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\ LOGONSERVER=\\SVL0DC03 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 Modular Messaging\Common;C:\Program Files\Common Files\Avaya Modular Messaging;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System3 2\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:\Program 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 -----Original Message----- From: Pid [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 1:11 AM To: Tomcat Users List Subject: Re: Can't start tomcat 5.5.26 service on windows Eric Hawkes wrote: > Hi, > > The GUI has proved useful for debugging, but didn't solve the problem. > It appears to read/write the registry, so settings made from the command > > line are picked up in the GUI tool, and vice versa. > > > Our Java setup is slightly non-standard. I'm not sure how non-standard: > > perhaps somebody can tell me if this situation is rare. We install the > JRE, and then we copy the server jvm.dll (taken from an SDK install) to > C:\Program Files\Java\jre1.5.0_12\bin\server\jvm.dll Rare. > We do not delete the client jvm DLL, nor do we change the > registry settings for Java. We simply point tomcat to the > server jvm.dll. Why? Not an attempt to "use the server jvm", surely? (Traditionally done using a switch, e.g. "java -server <etc...>".) > The jvm may be related to my problems. Maybe... > When I use the standard tomcat install > service.bat install > the client VM is the default, > and the tomcat service behaves nicely. > > When I proceed from that point (with a working service), and use > tomcat5w.exe to change the JVM path to point to the server VM DLL, > behavior is inconsistent. Surprise! > Sometimes I can start and stop the tomcat service, and sometimes I can't. A logger says what? > When I change it back to client (by checking the "Use default" check box), > it starts working again. > > However, installing using tomcat5.exe but without setting the > Jvm parameter has not helped: I still cannot start the service > after installing like this: > > 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" > --Startup=auto --StartMode=jvm --StopMode=jvm > --StartClass=org.apache.catalina.startup.BootStrap --StartParams=start > --StopClass=org.apache.catalina.startup.BootStrap --StopParams=stop > > Using --Jvm=auto doesn't help either. > > So, client vm or not, I still cannot install from the > command line using tomcat5.exe. Can I have a quick refresher, are you trying to install the windows service, or start the windows service? I assume the end result is that you want to run the server VM or make some other customisations to the environment? p >> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] >> Look at what the service.bat script generates > > I found something interesting in service.bat > > rem Set the server jvm from JAVA_HOME > set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll > if exist "%PR_JVM%" goto foundJvm > rem Set the client jvm from JAVA_HOME > set PR_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll > if exist "%PR_JVM%" goto foundJvm > rem Check for JRockit JVM: Bugzilla 39674 > set PR_JVM=%JAVA_HOME%\jre\bin\jrockit\jvm.dll > if exist "%PR_JVM%" goto foundJvm > set PR_JVM=auto > > My JAVA_HOME is C:\Program Files\Java\jre1.5.0_12 > and my jvm DLL files are in > C:\Program Files\Java\jre1.5.0_12\bin\server > C:\Program Files\Java\jre1.5.0_12\bin\client > > In other words, service.bat is looking in > %JAVA_HOME%\jre\bin\server\jvm.dll > for a DLL that is actually located one level up in > %JAVA_HOME%\bin\server\jvm.dll > > which is why service.bat echoes > Using JVM: auto > and is probably why this method of installing the service works > when nothing else does. > > Note: tomcat5w shows the correct path to the client jvm.dll > when I install this way. > > When I change the installation to use the server vm, things > stop working again. > > > Thanks, > > Eric > > > > -----Original Message----- > From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Sent: Monday, March 10, 2008 7:33 PM > To: Tomcat Users List > Subject: RE: Can't start tomcat 5.5.26 service on windows > >> From: Eric Hawkes [mailto:[EMAIL PROTECTED] >> Subject: RE: Can't start tomcat 5.5.26 service on windows >> >> Does this suggest a cause to my earlier problems? > > Probably means you don't have the parameters quite right for the > tomcat5.exe program. Look at what the service.bat script generates, and > look here for the tomcat5.exe doc: > http://commons.apache.org/daemon/procrun.html > > I haven't used the procrun-based .exe directly very much, mostly just > the GUI. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]