tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Earl Tom <>
Subject Re: What is the difference between running Tomcat 6 as a Windows Service vs. running from the command line?
Date Tue, 27 Oct 2009 18:54:20 GMT

Markus Schönhaber-10 wrote:
> Alan Kennedy:
>> I need to find out what is the difference between running Tomcat 6 as
>> a Windows Service and running it from the command line.
>> The reason is that I'm getting a bizarre bug when a jython based
>> servlet is run under Tomcat6-as-Service. But the bug does NOT appear
>> when Tomcat 6 is run from the command line using bin\startup.bat.
> The most prominent difference I can think of is the user account Tomcat
> runs as.
> Although I have no idea why this should cause the endless recursion you
> are seeing, I'd (temporarily) change the user account of the Tomcat
> service to your personal account and see if the problem still exists.

Was there a solution found for this behavior?  

It is happening to me as well when I try to install Liferay portal as a
service (Server 2008, 64-bit JVM, Tomcat 6.0.20 zip file installed with
64-bit tomcat6 and tomcat6w.exe files substituted).  

I also get a stack overflow error when running as a service, but normal
behavior when using startup.bat .  After getting startup.bat to run, I
installed the service using "service install".
If I run tomcat6 from the command line still as Administrator, it also

I was able to extract a command line that successfully runs:

"C:\Program Files\Java\jdk1.5.0_16\bin\java"  -Xmx1024m -XX:MaxPermSize=256m
-Dfile.encoding=UTF8 -Duser.timezone=GMT"C:/Tomcat/conf/jaas.config"
-Djava.endorsed.dirs="C:\Tomcat\endorsed" -classpath
"C:\Tomcat\bin\bootstrap.jar" -Dcatalina.base="C:\Tomcat"
org.apache.catalina.startup.Bootstrap  start 

Is there something I can do to troubleshoot?

Thanks for any assistance,

Earl Tom

View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message