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 fails. 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 -Djava.security.auth.login.config="C:/Tomcat/conf/jaas.config" -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="C:\Tomcat\conf\logging.properties" -Djava.endorsed.dirs="C:\Tomcat\endorsed" -classpath "C:\Tomcat\bin\bootstrap.jar" -Dcatalina.base="C:\Tomcat" -Dcatalina.home="C:\Tomcat" -Djava.io.tmpdir="C:\Tomcat\temp" 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: http://www.nabble.com/What-is-the-difference-between-running-Tomcat-6-as-a-Windows-Service--vs.-running-from-the-command-line--tp25960450p26083067.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org