Alan Kennedy-13 wrote: > > [Alan] >>>> 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. > > [Earl] >> 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. > > Hi Earl, > > I'm not sure if we're talking about the same bug, although it's easily > possible that it's the same bug, with differing consequences. > > I've made a little more progress on what is happening in jython when > this problem occurs, namely a infinite recursion on method reflection. > I'm guessing that this may be caused by a combination of classloading > and security policies, not sure yet. More details from here > > http://bugs.jython.org/issue1489 > > Note from that bug that we've had a report from a user who saw > identical behaviour when running a minimal jython servlet in BEA > WebLogic on Ubuntu, whereas the Tomcat on Ubuntu runs the code just > fine. So this is not a problem specific to Tomcat or to Tomcat on > Windows. > > I'll be continuing my investigations and reports on the jython bug > report. Please feel free to follow that discussion and/or contribute > to it. > >
Alan, I ran into a couple more relevant links: Here's on that actually pertains to Tomcat and Liferay, the setup I'm trying: http://www.liferay.com/web/guest/community/forums/-/message_boards/message/3095034 The claim is it's an artifact of compilation options. The page mentioned for the binaries is here: http://www.goldhahn.info/pmwiki.php/Software/TomcatBinaries I downloaded tomcat6_64bit.exe and tomcat6w_64bit.exe, copied them to the bin directory, renamed them to tomcat6.exe and tomcat6w.exe, did the service install, and everything seems to run fine. I don't know whether you're also running 64-bit Windows, but I hope this helps anyways. -- Earl -- View this message in context: http://old.nabble.com/What-is-the-difference-between-running-Tomcat-6-as-a-Windows-Service--vs.-running-from-the-command-line--tp25960450p26207815.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