You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Goehring, Chuck Mr., RCI - San Diego" <cg...@resourceconsultants.com> on 2003/09/06 00:16:49 UTC

Installing Tomcat 4.1.24 as a service on Win 2000 - won't start

Tomcatters,

I'm having trouble getting tomcat installed as a Win2000 service.

Below is the command I'm using:
"%CATALINA_HOME%\bin\tomcat.exe" -install "Apache Tomcat" "%JAVA_HOME%\jre\bin\server\jvm.dll" -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar" -Djava.endorsed.dirs="%CATALINA_HOME%\bin;%CATALINA_HOME%\common\lib" -Dcatalina.home="%CATALINA_HOME%" -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out "%CATALINA_HOME%\logs\stdout.log" -err "%CATALINA_HOME%\logs\stderr.log"

It succeeds and produces registry entries that look the same as those created by the Tomcat installer.  When it tries to load, the following messages get logged to the event log:

  The LoadLibrary function failed for the following reason: The specified module could not be found.
  Could not load the Java Virtual Machine. 
  The Apache Tomcat service failed to start. 

There is nothing in any of tomcats logs.  The version info is as folowes:
  Win 2000 service pack 4
  Tomcat 4.1.24
  Java j2sdk1.4.2_01 (never used this new one before)

Environment(wrapped):
  CATALINA_HOME=f:\Tomcat4.1
  JAVA_HOME=d:\j2re1.4.2_01
  Path=F:\Tomcat4.1\bin;E:\perl\bin;E:\Apache2\bin;D:\j2sdk1.4.2_01\bin;C:\PROGRA~
  1\SIMSEX~1;c:\aux_bin;C:\Oracle\Ora81\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\Sy
  stem32\Wbem;C:\PROGRA~1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BI
  N;C:\PROGRA~1\MICROS~3\Common\TOOLS\WINNT;C:\PROGRA~1\MICROS~3\Common\TOOLS;"C:\
  Program Files\Symantec_Client_Security\Symantec AntiVirus"

If I start it with the startup.bat, it comes up fine.

Anyone have a suggestion?

Chuck





 

RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start

Posted by John Corrigan <jo...@johncorrigan.net>.
When installing as a service, the installation routine uses whatever
environment variables are set in the shell.

Once installed as a service Tomcat uses registry values, not environment
variables.

My two cents :)

-----Original Message-----
From: Mark Eggers [mailto:its_toasted@yahoo.com]
Sent: Friday, September 05, 2003 3:31 PM
To: Tomcat Users List
Subject: Re: Installing Tomcat 4.1.24 as a service on Win 2000 - won't
start


If you're starting things as a service, the
environment variables need to be defined at the system
level and not the user level.

HTH

/mde/
just my two cents . . . .


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




Re: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start

Posted by Mark Eggers <it...@yahoo.com>.
If you're starting things as a service, the
environment variables need to be defined at the system
level and not the user level.

HTH

/mde/
just my two cents . . . .


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com