tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: Path of log files changed in Tomcat 7.0.25 when installing as Windows Service
Date Fri, 27 Jan 2012 15:14:51 GMT wrote:
> -----Original-Nachricht-----
>> 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
> 7. Following logs are created (displayed by "dir" command):
> C:\tomcat7>dir /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:
For additional commands, e-mail:

View raw message