tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
Date Fri, 27 Jan 2012 15:05:46 GMT

> Von: Mark Thomas <>
> An: Tomcat Users List <>
> 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 "" (the 32-bit Windows Zip file) from 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:\tomcat7>dir /b /s *.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?


Best Regards,
Konstantin Prei├čer

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

View raw message