Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
On 28.01.2012 07:27, Caldarale, Charles R wrote: From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service Haven't yet figured out why the ${catalina.base} references in logging.properties aren't getting resolved. It appears that procrun 1.0.8 is broken: ++JvmOptions is being treated like --JvmOptions, so the settings of catalina.base and catalina.home in service.bat are getting lost. Chuck opened an issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=52548 Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
Hi, -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Saturday, January 28, 2012 3:00 PM To: users@tomcat.apache.org Subject: Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service On 28.01.2012 07:27, Caldarale, Charles R wrote: From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service Haven't yet figured out why the ${catalina.base} references in logging.properties aren't getting resolved. It appears that procrun 1.0.8 is broken: ++JvmOptions is being treated like --JvmOptions, so the settings of catalina.base and catalina.home in service.bat are getting lost. Chuck opened an issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=52548 Regards, Rainer Thanks to all! Best Regards, Konstantin Preißer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
Hi all, I was using Tomcat 7.0.23 with Java 1.7.0_02 on Windows Server 2008 (32-Bit). I installed it as service, by using the service.bat file with service install command. Let's say the installation path is C:\Tomcat7. For Tomcat to work, I added the JAVA_HOME environment variable which points to the JDK. In this and all previous versions of Tomcat, both the logs from Tomcat and from Commons Daemon are stored in C:\Tomcat7\logs. After upgrading to Tomcat 7.0.25, I noticed that the logs from Tomcat (e.g. catalina.-mm-dd.log) are stored in a different folder, C:\Tomcat7\bin\${catalina.base}\logs, instead of C:\Tomcat7\logs; whereas the logs from daemon are still in C:\Tomcat7\logs. Note that ${catalina.base} is the real name of the folder, not just a placeholder. Is this change intentional? Does that mean that I must any additional environment variable like CATALINA_BASE? Thanks! Best Regards, Konstantin Preißer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
On 27/01/2012 11:19, Konstantin Preißer wrote: Is this change intentional? Does that mean that I must any additional environment variable like CATALINA_BASE? It means you messed up your install. A clean install of 7.0.25 (with the installer) works fine for me. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
-Original-Nachricht- Von: Mark Thomas ma...@apache.org An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service Datum: Fri, 27 Jan 2012 14:38:42 +0100 It means you messed up your install. A clean install of 7.0.25 (with the installer) works fine for me. Mark Hi Mark, ok, but please note that I was using service.bat, not the Windows Installer. I tried to reproduce the behavior on a clean Windows XP (32 bit) virtual machine. I did the following steps: 1. I downloaded jdk-7u2-windows-i586.exe (JDK 7u2) from Oracle and installed it. 2. I set the JAVA_HOME environment variable to the JDK path, C:\Programme\Java\jdk1.7.0_02. 3. I downloaded apache-tomcat-7.0.25-windows-x86.zip (the 32-bit Windows Zip file) from tomcat.apache.org and extracted the files to C:\Tomcat7. 4. When I call startup.bat and later shutdown.bat to start Tomcat directly (not as service), all logs are stored in C:\Tomcat7, e.g. C:\Tomact7\logs\catalina.2012-01-27.log. After shutting down Tomact, I deleted the logs so that the folder is clean. 5. Then, I run service install to install Tomcat as Windows service. Following output is printed to the console: Installing the service 'Tomcat7' ... Using CATALINA_HOME:C:\tomcat7 Using CATALINA_BASE:C:\tomcat7 Using JAVA_HOME:C:\Programme\Java\jdk1.7.0_02 Using JRE_HOME: C:\Programme\Java\jdk1.7.0_02\jre Using JVM: C:\Programme\Java\jdk1.7.0_02\jre\bin\server\jvm.dll The service 'Tomcat7' has been installed. 6. I start the Apache Tomcat 7 service (short name: Tomcat7) in the Windows Services panel. 7. Following logs are created (displayed by dir command): C:\tomcat7dir /b /s *.log C:\tomcat7\bin\${catalina.base}\logs\catalina.2012-01-27.log C:\tomcat7\bin\${catalina.base}\logs\host-manager.2012-01-27.log C:\tomcat7\bin\${catalina.base}\logs\localhost.2012-01-27.log C:\tomcat7\bin\${catalina.base}\logs\manager.2012-01-27.log C:\tomcat7\logs\commons-daemon.2012-01-27.log C:\tomcat7\logs\tomcat7-stderr.2012-01-27.log C:\tomcat7\logs\tomcat7-stdout.2012-01-27.log So it seems the Tomcat logs are stored in C:\tomcat7\bin\${catalina.base}\logs\, whereas the Daemon logs are stored in C:\tomcat7\logs\. Also, when I set CATALINA_HOME to C:\Tomcat7 before installing the service, the logs are stored in the bin\${catalina.base}\logs folder. When using the same steps with Tomcat 7.0.23, all the logs are stored into C:\Tomact7\logs. Did I something wrong in the service installation? Thanks, Best Regards, Konstantin Preißer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
verlag.preis...@t-online.de wrote: -Original-Nachricht- Von: Mark Thomas ma...@apache.org An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service Datum: Fri, 27 Jan 2012 14:38:42 +0100 It means you messed up your install. A clean install of 7.0.25 (with the installer) works fine for me. Mark Hi Mark, ok, but please note that I was using service.bat, not the Windows Installer. I tried to reproduce the behavior on a clean Windows XP (32 bit) virtual machine. I did the following steps: 1. I downloaded jdk-7u2-windows-i586.exe (JDK 7u2) from Oracle and installed it. 2. I set the JAVA_HOME environment variable to the JDK path, C:\Programme\Java\jdk1.7.0_02. 3. I downloaded apache-tomcat-7.0.25-windows-x86.zip (the 32-bit Windows Zip file) from tomcat.apache.org and extracted the files to C:\Tomcat7. 4. When I call startup.bat and later shutdown.bat to start Tomcat directly (not as service), all logs are stored in C:\Tomcat7, e.g. C:\Tomact7\logs\catalina.2012-01-27.log. After shutting down Tomact, I deleted the logs so that the folder is clean. 5. Then, I run service install to install Tomcat as Windows service. Following output is printed to the console: Installing the service 'Tomcat7' ... Using CATALINA_HOME:C:\tomcat7 Using CATALINA_BASE:C:\tomcat7 Using JAVA_HOME:C:\Programme\Java\jdk1.7.0_02 Using JRE_HOME: C:\Programme\Java\jdk1.7.0_02\jre Using JVM: C:\Programme\Java\jdk1.7.0_02\jre\bin\server\jvm.dll The service 'Tomcat7' has been installed. 6. I start the Apache Tomcat 7 service (short name: Tomcat7) in the Windows Services panel. 7. Following logs are created (displayed by dir command): C:\tomcat7dir /b /s *.log C:\tomcat7\bin\${catalina.base}\logs\catalina.2012-01-27.log C:\tomcat7\bin\${catalina.base}\logs\host-manager.2012-01-27.log C:\tomcat7\bin\${catalina.base}\logs\localhost.2012-01-27.log C:\tomcat7\bin\${catalina.base}\logs\manager.2012-01-27.log C:\tomcat7\logs\commons-daemon.2012-01-27.log C:\tomcat7\logs\tomcat7-stderr.2012-01-27.log C:\tomcat7\logs\tomcat7-stdout.2012-01-27.log So it seems the Tomcat logs are stored in C:\tomcat7\bin\${catalina.base}\logs\, whereas the Daemon logs are stored in C:\tomcat7\logs\. Also, when I set CATALINA_HOME to C:\Tomcat7 before installing the service, the logs are stored in the bin\${catalina.base}\logs folder. When using the same steps with Tomcat 7.0.23, all the logs are stored into C:\Tomact7\logs. Did I something wrong in the service installation? To me, it does not look like you did anything wrong, and it looks very much like there is something wrong in the setup software, like some bad quoting that prevents '${catalina.base}' to be expanded to its real value. Which then causes the path to be considered as relative, and made absolute by prefixing it with 'C:\tomcat7\bin\'. Of course, that's just my personal opinion. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
From: verlag.preis...@t-online.de [mailto:verlag.preis...@t-online.de] Subject: Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service So it seems the Tomcat logs are stored in C:\tomcat7\bin\${catalina.base}\logs\, whereas the Daemon logs are stored in C:\tomcat7\logs\. I've duplicated the problem on Windows 7 64-bit as well as XP when using service.bat. Haven't yet figured out why the ${catalina.base} references in logging.properties aren't getting resolved. - 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.
Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
On 27/01/2012 18:49, Caldarale, Charles R wrote: From: verlag.preis...@t-online.de [mailto:verlag.preis...@t-online.de] Subject: Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service So it seems the Tomcat logs are stored in C:\tomcat7\bin\${catalina.base}\logs\, whereas the Daemon logs are stored in C:\tomcat7\logs\. I've duplicated the problem on Windows 7 64-bit as well as XP when using service.bat. Haven't yet figured out why the ${catalina.base} references in logging.properties aren't getting resolved. That'll be a bug then. Please create a bugzilla entry. If you find the root cause as well, that would be great. A patch would be even better ;) Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service Haven't yet figured out why the ${catalina.base} references in logging.properties aren't getting resolved. It appears that procrun 1.0.8 is broken: ++JvmOptions is being treated like --JvmOptions, so the settings of catalina.base and catalina.home in service.bat are getting lost. - 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.