trouble starting tomcat: "error 0" on Windows 64bit
We're having a heck of a time getting tomcat running on windows server 2003 enterprise x64 -- it barely gets started, and instantly quits. We installed java from jdk-1_5_0_18-windows-amd64.exe which seems to be the only 64-bit version available? Our processor is intel, tho... Is there an intel-not-amd version we missed? All we get is "error 0x0"...? This is on Windows Server 2003 R2 Enterprise x64 (SP2) -- Yes, this is a 64-bit machine Tried tomcat from both apache-tomcat-5.5.27.exe installer and from straight ZIP Java is 1.5.0_18 Java has no spaces in its path: C:\Java\jdk1.5.0_18 (from jdk-1_5_0_18-windows-amd64.exe installer) No port conflicts (we're asking for port 80 instead of 8080) according to netstat -an yes, we're listening on port 80 instead of 8080 (via server.xml); Tomcat has no spaces in its path: C:\Tomcat55 Executing "tomcat5.exe" from the command line shows only a blank line, then the command prompt pops up again (no text-to-console logged). Executing "startup.bat" shows Using CATALINA_BASE: C:\Tomcat55 Using CATALINA_HOME: C:\Tomcat55 Using CATALINA_TMPDIR: C:\Tomcat55\temp Using JRE_HOME:C:\Java\jdk1.5.0_18 We've tried running it as a service (setting it up via 'service.bat'), too: The start>admin>componentServices>event viewer shows only: """ The Apache Tomcat service terminated with service-specific error 0 (0x0). For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. """ C:\Tomcat55\logs>type jakarta_service_20090515.log [2009-05-15 15:03:59] [info] Procrun (2.0.4.0) started [2009-05-15 15:03:59] [info] Service sakai name Apache Tomcat sakai [2009-05-15 15:04:00] [info] Service sakai installed [2009-05-15 15:04:00] [info] Procrun finished. [2009-05-15 15:04:00] [info] Procrun (2.0.4.0) started [2009-05-15 15:04:00] [info] Updating service... [2009-05-15 15:04:00] [info] Service sakai updated [2009-05-15 15:04:00] [info] Update service finished. [2009-05-15 15:04:00] [info] Procrun finished. [2009-05-15 15:04:00] [info] Procrun (2.0.4.0) started [2009-05-15 15:04:00] [info] Updating service... [2009-05-15 15:04:00] [info] Service sakai updated [2009-05-15 15:04:00] [info] Update service finished. [2009-05-15 15:04:00] [info] Procrun finished. [2009-05-15 15:05:19] [info] Procrun (2.0.4.0) started [2009-05-15 15:05:19] [info] Running Service... [2009-05-15 15:05:19] [info] Starting service... [2009-05-15 15:05:19] [174 javajni.c] [error] %1 is not a valid Win32 application. [2009-05-15 15:05:19] [994 prunsrv.c] [error] Failed creating java C:\Java\jdk1.5.0_18\jre\bin\server\jvm.dll [2009-05-15 15:05:19] [1269 prunsrv.c] [error] ServiceStart returned 1 [2009-05-15 15:05:19] [info] Run service finished. [2009-05-15 15:05:19] [info] Procrun finished. Both stderr and stdout logs are empty. We did find a thread online that recommended "copy the file msvcr71.dll from the bin dir of your java installation, to the bin dir of the tomcat installation." Of course, we don't have a msvcr71 (tho we did find a msvcrt.dll which didn't do the trick.) Any pointers would be great! -- will trillich "Our only real economic security lies in our power to meet human needs." -- S.Covey, the 8th Habit - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: trouble starting tomcat: "error 0" on Windows 64bit
On Sat, May 16, 2009 at 9:15 AM, Martin Gainty wrote: > Will- > > uninstall current java > uninstall current jre > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6747473 We're not having any problem with "Internal Error 2318. C:\Windows\system32\java.exe"...? There are some interesting steps here but not sure how they apply to our situation. (Probably just me being dense, of course.) > reinstall 64bit JRE > https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/viewproductdetail-start?productref=jre-6u13-oth-...@cds-cds_developer We can't use 1.6 -- the system we're installing is only confirmed to work on Java v1.5 > reinstall 64bit JDK which matches the exact version JRE you just installed > http://java.sun.com/javase/downloads/index.jsp We've got the JDK and JRE from the same installer (jdk-1_5_0_18-windows-amd64.exe) so in theory they should be compatible, no? >> Date: Sat, 16 May 2009 00:17:39 -0500 >> Subject: trouble starting tomcat: "error 0" on Windows 64bit >> From: w...@serensoft.com >> To: users@tomcat.apache.org >> >> We're having a heck of a time getting tomcat running on windows server >> 2003 enterprise x64 -- it barely gets started, and instantly quits. We >> installed java from jdk-1_5_0_18-windows-amd64.exe which seems to be >> the only 64-bit version available? Our processor is intel, tho... Is >> there an intel-not-amd version we missed? >> >> >> All we get is "error 0x0"...? >> >> This is on Windows Server 2003 R2 Enterprise x64 (SP2) -- Yes, this is >> a 64-bit machine >> >> Tried tomcat from both apache-tomcat-5.5.27.exe installer and from >> straight ZIP >> >> Java is 1.5.0_18 >> >> Java has no spaces in its path: C:\Java\jdk1.5.0_18 (from >> jdk-1_5_0_18-windows-amd64.exe installer) >> >> No port conflicts (we're asking for port 80 instead of 8080) according >> to netstat -an >> >> >> yes, we're listening on port 80 instead of 8080 (via server.xml); >> Tomcat has no spaces in its path: C:\Tomcat55 >> >> Executing "tomcat5.exe" from the command line shows only a blank line, >> then the command prompt pops up again (no text-to-console logged). >> >> Executing "startup.bat" shows >> Using CATALINA_BASE: C:\Tomcat55 >> Using CATALINA_HOME: C:\Tomcat55 >> Using CATALINA_TMPDIR: C:\Tomcat55\temp >> Using JRE_HOME: C:\Java\jdk1.5.0_18 >> >> We've tried running it as a service (setting it up via 'service.bat'), >> too: >> >> The start>admin>componentServices>event viewer shows only: >> """ >> The Apache Tomcat service terminated with service-specific error 0 (0x0). >> >> For more information, see Help and Support Center at >> http://go.microsoft.com/fwlink/events.asp. >> """ >> >> C:\Tomcat55\logs>type jakarta_service_20090515.log >> [2009-05-15 15:03:59] [info] Procrun (2.0.4.0) started >> [2009-05-15 15:03:59] [info] Service sakai name Apache Tomcat sakai >> [2009-05-15 15:04:00] [info] Service sakai installed >> [2009-05-15 15:04:00] [info] Procrun finished. >> [2009-05-15 15:04:00] [info] Procrun (2.0.4.0) started >> [2009-05-15 15:04:00] [info] Updating service... >> [2009-05-15 15:04:00] [info] Service sakai updated >> [2009-05-15 15:04:00] [info] Update service finished. >> [2009-05-15 15:04:00] [info] Procrun finished. >> [2009-05-15 15:04:00] [info] Procrun (2.0.4.0) started >> [2009-05-15 15:04:00] [info] Updating service... >> [2009-05-15 15:04:00] [info] Service sakai updated >> [2009-05-15 15:04:00] [info] Update service finished. >> [2009-05-15 15:04:00] [info] Procrun finished. >> [2009-05-15 15:05:19] [info] Procrun (2.0.4.0) started >> [2009-05-15 15:05:19] [info] Running Service... >> [2009-05-15 15:05:19] [info] Starting service... >> [2009-05-15 15:05:19] [174 javajni.c] [error] %1 is not a valid Win32 >> application. >> [2009-05-15 15:05:19] [994 prunsrv.c] [error] Failed creating java >> C:\Java\jdk1.5.0_18\jre\bin\server\jvm.dll >> [2009-05-15 15:05:19] [1269 prunsrv.c] [error] ServiceStart returned 1 >> [2009-05-15 15:05:19] [info] Run service finished. >> [2009-05-15 15:05:19] [info] Procrun finished. >> >> Both stderr and stdout logs are empty. >> >> We did find a thread online that recommended "copy the file >> msvcr71.dll from the bin dir of your java installation, to the bin dir >> of the tomcat installation." Of course, we
startup.bat and catalina.bat -> NoClassDefFoundError: server
First, I appreciate your responses and your help. Thanks! Here's my new question: Short version: We find what the launch-tomcat command is from the startup.bat and catalina.bat files, and paste that in directly at the command line, only to get: "Exception in thread "main" java.lang.NoClassDefFoundError: server" It it naive to think this is our problem? (E.g. the batch file may be setting other variables...) Ideas? Long version: Okay, so we're trying to get Tomcat to run under 64-bit Windows 2003 Enterprise... Java is fine, but tomcat won't even begin to start. Blip, the console window shows up and instantly goes away again, no files open, no ports open, no tomcat/java process at all. When we "rem" the "@echo off" statements in the Tomcat batch files to see what's going on, we can see that the final command to execute tomcat is: start "Tomcat" "C:\Java\jdk1.5.0_18\bin\java" server -Xms768m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:NewSize=192m -XX:MaxNewSize=384m -XX:+UseParallelGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="C:\Tomcat55\conf\logging.properties" -Djava.endorsed.dirs="C:\Tomcat55\common\endorsed" -classpath "C:\Java\jdk1.5.0_18\lib\tools.jar;C:\Tomcat55\bin\bootstrap.jar" -Dcatalina.base="C:\Tomcat55" -Dcatalina.home="C:\Tomcat55" -Djava.io.tmpdir="C:\Tomcat55\temp" org.apache.catalina.startup.Bootstrap start Meaning that we're just basically calling java, with the tomcat bootstrap.jar of course. So we try pasting that command (without the 'start "[arg]"') and we get: Exception in thread "main" java.lang.NoClassDefFoundError: server Is this error misleading? Bootstrap.jar is indeed where it's expected... Is there something else in the batch file that would set up a more reasonable environment so that the 'server' class would be found? If not, is there something obvious here that we've missed in order to get tomcat off the ground? C:\Tomcat55>java -version java version "1.5.0_18" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_18-b02, mixed mode) Java runs hello-world just fine. Ancillary question: tomcat connector, tomcat native, and 64-bit windows tomcat.apache.org offers a ZIP download of tomcat, plus a "tomcat connector" and a "tomcat native". There's documentation for each, but the intended audience seems to be folks who already know what each of those is for. What would the "tomcat connector" be for, or what's the "native" instance all about. At tomcat.apache.org there are 64-bit downloads in those categories, but how do they relate to the normal ZIP downloads? -- will trillich "Our only real economic security lies in our power to meet human needs." -- S.Covey, the 8th Habit - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
running tomcat5 -- as a service under 64-bit windows?
Hi folks -- Short version: how to get Tomcat5 to run as a service under 64-bit Windows 2003? Long version: Okay, we've got Tomcat5 running from the command-line within 64-bit Windows 2003 Enterprise (and cannot use tomcat 6/java 6 for our project) -- and now we're working to get it running as a service... We've replaced the original tomcat5.exe and tomcat5w.exe with the ones at http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/amd64/ as directed from http://www.nabble.com/running-tomcat-5.5-as-a-service-on-64bit-windows-td6821449.html And then command line 'service install' appears to work (it shows up in admin tools > services) but the service won't start: it tries for a while (netstat -nab shows it's running for a spell), but it quietly gives up. tomcat/logs/stderr* does contain some text, but there's no catalina.out, and start > admin tools > component services > events doesn't give up any evidence either. Plus, the mofidied/64-bit-savvy tomcat5w.exe which is supposed to set parameters for the service, complains that 'tomcat5' doesn't exist. Ideas? -- will trillich "Our only real economic security lies in our power to meet human needs." -- S.Covey, the 8th Habit - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
never mind :)
We just got Tomcat 5 to work as a service on windows 64-bit, woo hoo! (see email with subject "running tomcat5 -- as a service under 64-bit windows? SOLVED".) We thought we had another new snag, but there's just a firewall or network issue. We now return you to your regularly scheduled email. :) -- will trillich "Our only real economic security lies in our power to meet human needs." -- S.Covey, the 8th Habit - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
"The Apache Tomcat service terminated with service-specific error 0 (0x0)." on Windows again... argh!
Okay -- wWe CAN start Tomcat via the command line, no problem. But when trying to start it as a SERVICE, no luck -- we look in the event logs and find "The Apache Tomcat service terminated with service-specific error 0 (0x0)." again In JAVA_OPTS we've got "-server -XX:+UseParallelGC -Xmx1200m -XX:PermSize=120m -XX:MaxPermSize=240m -Djava.awt.headless=true" which is what DOES work from the command line. In the java tab via tomcat5w, where we can NOT start the service: -Dcatalina.base=C:\tomcat55 -Dcatalina.home=C:\tomcat55 -Djava.endorsed.dirs=C:\tomcat55\common\endorsed -Djava.io.tmpdir=C:\tomcat55\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=C:\tomcat55\conf\logging.properties -Xmx1200m -Xms1200m -XX:PermSize=120m -XX:MaxPermSize=240m -server -Djava.awt.headless=true When we try to start the service we see "Invalid maximum heap size: -Xmx1200m " in the stderr*.log output. And the jakarta_service*.log contains [2009-06-06 13:08:37] [395 javajni.c] [error] CreateJavaVM Failed [2009-06-06 13:08:37] [1000 prunsrv.c] [error] Failed initializing java C:\tomcat55\bin\bootstrap.jar [2009-06-06 13:08:37] [1269 prunsrv.c] [error] ServiceStart returned 2 Pointers welcome :( System is (different from previous thread): - windows server 2003 std edition sp2 - intel xeon cpu 3070 @ 2.66ghz - 4gb ram (physical address extension) Java is java version "1.5.0_19" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02) Java HotSpot(TM) Client VM (build 1.5.0_19-b02, mixed mode, sharing) Tomcat is Server version: Apache Tomcat/5.5.27 Server built: Aug 28 2008 10:08:26 Server number: 5.5.27.0 OS Name:Windows 2003 OS Version: 5.2 Architecture: x86 JVM Version:1.5.0_19-b02 JVM Vendor: Sun Microsystems Inc. -- will trillich "Tis the set of the sails / And not the gales / That tells the way we go." -- Ella Wheeler Wilcox - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org