RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start
I have found this to occur if JDK is not installed correctly. Try going to C:\Program Files\Java\j2re1.4.2_01\bin\client and see if there is a jvm.dll file there. If there is not then uninstall the JDK, delete the Java folder and reinstall. If the jvm.dll is there then uninstall the JDK and remove the Java folder and reinstall. Sometimes the dll's do not get registered correctly. Also in your Environment Variables make sure your path has this included: C:\j2sdk1.4.2_01\bin, well before any Tomcat path statements. Also make sure that the JAVA_HOME, TOMCAT_HOME and CATALINA_HOME are all under the system variables and not the user variables. Keep in mind that your vesion of JDK will determine the correct syntax. Dean -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Thu 10/2/2003 12:06 AM To: Tomcat Users List Cc: Subject: RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start Am having the same problem myself on a WinXP Home box installing 4.1.27 . I can start tomcat manually or from Start menu, but I get this in the event log when I start it as a service: "The LoadLibrary function failed for the following reason: The specified module could not be found. Could not load the Java Virtual Machine. " I don't know why this is happening. JAVA_HOME and CATALINA_HOME are set correctly. I'm using the service as configured by the installer. Just to be sure, I did chmod 777 on the j2sdk and jre java trees. I'm stumped. My only guess is that there must be something funky with the local system account that runs services, but I can't see what. -- Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start
Am having the same problem myself on a WinXP Home box installing 4.1.27 . I can start tomcat manually or from Start menu, but I get this in the event log when I start it as a service: "The LoadLibrary function failed for the following reason: The specified module could not be found. Could not load the Java Virtual Machine. " I don't know why this is happening. JAVA_HOME and CATALINA_HOME are set correctly. I'm using the service as configured by the installer. Just to be sure, I did chmod 777 on the j2sdk and jre java trees. I'm stumped. My only guess is that there must be something funky with the local system account that runs services, but I can't see what. -- Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start
Tomcatters, I spoke too soon on this. Now (after rebooting) the Event Viewer shows an entry that the service started but I'm getting the following in stdout.log: Bootstrap: Create Catalina server org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409) at org.apache.commons.digester.Digester.(Digester.java:352) at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:183) at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) Caused by: java.lang.NullPointerException at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:543) ... 12 more Bootstrap: Starting service Bootstrap: Service started Any help would be appreciated Chuck -Original Message- From: Goehring, Chuck Mr., RCI - San Diego Sent: Monday, September 08, 2003 11:24 AM To: Tomcat Users List Subject: RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start To the next guy, Found the problem here. JAVA_HOME should be d:\j2sdk1.4.2_01 instead of what it is below. Chuck -Original Message- From: Goehring, Chuck Mr., RCI - San Diego Sent: Friday, September 05, 2003 3:17 PM To: [EMAIL PROTECTED] Subject: 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start
To the next guy, Found the problem here. JAVA_HOME should be d:\j2sdk1.4.2_01 instead of what it is below. Chuck -Original Message- From: Goehring, Chuck Mr., RCI - San Diego Sent: Friday, September 05, 2003 3:17 PM To: [EMAIL PROTECTED] Subject: 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing Tomcat 4.1.24 as a service on Win 2000 - won't start
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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]