You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "will@serensoft.com" <wi...@serensoft.com> on 2009/06/06 22:22:03 UTC

"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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: "The Apache Tomcat service terminated with service-specific error 0 (0x0)." on Windows again... argh!

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: trillich@gmail.com [mailto:trillich@gmail.com] On Behalf Of
> will@serensoft.com
> Subject: "The Apache Tomcat service terminated with service-specific
> error 0 (0x0)." on Windows again... argh!
> 
> In the java tab via tomcat5w, where we can NOT start the service:
> -Xmx1200m
> -Xms1200m

When using the service, don't set the heap sizes via the -X options; use the "Initial memory pool" and "Maximum memory pool" cells instead.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org