Discussion:
Where does my stderr go?
Thomas Kloeber
2010-12-13 14:00:15 UTC
Permalink
Folks'es,

I have a strange problem with my Tomcat-Servlets:

everything my servlets print out via System.err is lost and does not
show up in any of the log files.
How can that be and what can I do about it?

When I start Tomcat all the usual log files arecreated like
stdout_XXXXXXXX.log, localhost_access_log, catalina.*.log,
stder_XXXXXXXX.log, etc. However, stderr.*.log remains empty even if my
servlets print stuff to System.err or dump stack traces. Only if I print
to System.out the info appears in stdout_.*.log.

I'm using Apache Tomcat 6.0.26, Java 1.6.0_22-b04 on Windows 2003 x86.

Thomas
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss
André Warnier
2010-12-13 15:56:34 UTC
Permalink
Post by Thomas Kloeber
Folks'es,
everything my servlets print out via System.err is lost and does not
show up in any of the log files.
How can that be and what can I do about it?
When I start Tomcat all the usual log files arecreated like
stdout_XXXXXXXX.log, localhost_access_log, catalina.*.log,
stder_XXXXXXXX.log, etc. However, stderr.*.log remains empty even if my
servlets print stuff to System.err or dump stack traces. Only if I print
to System.out the info appears in stdout_.*.log.
I'm using Apache Tomcat 6.0.26, Java 1.6.0_22-b04 on Windows 2003 x86.
Presumably, you are running Tomcat as a Windows Service.
If that is the case, navigate to the tomcat/bin directory, and double-click on the
tomcat6w.exe program. Then in the dialog, select the "Logging" tab. This may explain
what happens.
Thomas Kloeber
2010-12-14 08:50:06 UTC
Permalink
André,

thanks for your suggestion. Yes, I run Tomcat as a service.
I tried your suggestion and it looks all normal/ok.

* Level: Info
* Log path: my tomcat installation directory/logs
* Log prefix: jakarta_service_
* Redirect Stdout: auto
* Redirect Stderr: auto

I tried changing the loggin level to debug, but it doesn't make any
difference.
Any other ideas?

Thomas
Post by André Warnier
Post by Thomas Kloeber
Folks'es,
everything my servlets print out via System.err is lost and does not
show up in any of the log files.
How can that be and what can I do about it?
When I start Tomcat all the usual log files arecreated like
stdout_XXXXXXXX.log, localhost_access_log, catalina.*.log,
stder_XXXXXXXX.log, etc. However, stderr.*.log remains empty even if
my servlets print stuff to System.err or dump stack traces. Only if I
print to System.out the info appears in stdout_.*.log.
I'm using Apache Tomcat 6.0.26, Java 1.6.0_22-b04 on Windows 2003 x86.
Presumably, you are running Tomcat as a Windows Service.
If that is the case, navigate to the tomcat/bin directory, and
double-click on the tomcat6w.exe program. Then in the dialog, select
the "Logging" tab. This may explain what happens.
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss
André Warnier
2010-12-14 10:10:53 UTC
Permalink
Yes.

What about these ?
Post by Thomas Kloeber
* Redirect Stdout: auto
* Redirect Stderr: auto
Do you know what that does ?
Why don't you try to set the "Redirect Stderr" to some file path on your server, and see
what arrives in it ?

You could also try to look in the Windows Event Logs, in case anything happens there.
Go on, be imaginative. It's your PC after all.
Post by Thomas Kloeber
André,
thanks for your suggestion. Yes, I run Tomcat as a service.
I tried your suggestion and it looks all normal/ok.
* Level: Info
* Log path: my tomcat installation directory/logs
* Log prefix: jakarta_service_
* Redirect Stdout: auto
* Redirect Stderr: auto
I tried changing the loggin level to debug, but it doesn't make any
difference.
Any other ideas?
Thomas
Post by André Warnier
Post by Thomas Kloeber
Folks'es,
everything my servlets print out via System.err is lost and does not
show up in any of the log files.
How can that be and what can I do about it?
When I start Tomcat all the usual log files arecreated like
stdout_XXXXXXXX.log, localhost_access_log, catalina.*.log,
stder_XXXXXXXX.log, etc. However, stderr.*.log remains empty even if
my servlets print stuff to System.err or dump stack traces. Only if I
print to System.out the info appears in stdout_.*.log.
I'm using Apache Tomcat 6.0.26, Java 1.6.0_22-b04 on Windows 2003 x86.
Presumably, you are running Tomcat as a Windows Service.
If that is the case, navigate to the tomcat/bin directory, and
double-click on the tomcat6w.exe program. Then in the dialog, select
the "Logging" tab. This may explain what happens.
------------------------------------------------------------------------
---------------------------------------------------------------------
Thomas Kloeber
2010-12-16 07:52:52 UTC
Permalink
Andre,
Post by André Warnier
Yes.
What about these ?
Post by Thomas Kloeber
* Redirect Stdout: auto
* Redirect Stderr: auto
Do you know what that does ?
Why don't you try to set the "Redirect Stderr" to some file path on
your server, and see what arrives in it ?
You could also try to look in the Windows Event Logs, in case anything happens there.
Go on, be imaginative. It's your PC after all.
thanx for your helpful answer. Believe me, before I post on a mailing
list or forum I spent a long time trying to fix my problems.
In this case I ran out of ideas, so I was hoping I would find some
expertise on this mailing list...

I tried your suggestion and guess what, it didn't make any difference.

Thomas
Post by André Warnier
Post by Thomas Kloeber
André,
thanks for your suggestion. Yes, I run Tomcat as a service.
I tried your suggestion and it looks all normal/ok.
* Level: Info
* Log path: my tomcat installation directory/logs
* Log prefix: jakarta_service_
* Redirect Stdout: auto
* Redirect Stderr: auto
I tried changing the loggin level to debug, but it doesn't make any
difference.
Any other ideas?
Thomas
Post by André Warnier
Post by Thomas Kloeber
Folks'es,
everything my servlets print out via System.err is lost and does not
show up in any of the log files.
How can that be and what can I do about it?
When I start Tomcat all the usual log files arecreated like
stdout_XXXXXXXX.log, localhost_access_log, catalina.*.log,
stder_XXXXXXXX.log, etc. However, stderr.*.log remains empty even
if my servlets print stuff to System.err or dump stack traces. Only
if I print to System.out the info appears in stdout_.*.log.
I'm using Apache Tomcat 6.0.26, Java 1.6.0_22-b04 on Windows 2003 x86.
Presumably, you are running Tomcat as a Windows Service.
If that is the case, navigate to the tomcat/bin directory, and
double-click on the tomcat6w.exe program. Then in the dialog,
select the "Logging" tab. This may explain what happens.
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss
Christopher Schultz
2010-12-16 19:59:05 UTC
Permalink
Thomas,
Post by Thomas Kloeber
thanx for your helpful answer. Believe me, before I post on a mailing
list or forum I spent a long time trying to fix my problems.
In this case I ran out of ideas, so I was hoping I would find some
expertise on this mailing list...
I tried your suggestion and guess what, it didn't make any difference.
Care to be specific? We can't tell what you did, or what happened when
you did it. All we know is that you did something and it didn't change
anything from the previous behavior (which you didn't really describe,
either).

How about posting your entire configuration, then the contents of all
the logs that are generated when you start Tomcat fresh (and delete the
log files, just for good measure). Then maybe we can start figuring out
what's going on.

- -chris
Thomas Kloeber
2010-12-17 07:38:21 UTC
Permalink
Chris,

you're right, I should have given more info, sorry...
Post by Christopher Schultz
Care to be specific? We can't tell what you did, or what happened when
you did it. All we know is that you did something and it didn't change
anything from the previous behavior (which you didn't really describe,
either).
I changed the "auto"-settings for Stdout and Stderr in tomcat6w to
"C:\tmp". Tomcat duely created the files there, but stderr still remains
empty.
Post by Christopher Schultz
How about posting your entire configuration, then the contents of all
the logs that are generated when you start Tomcat fresh (and delete the
log files, just for good measure). Then maybe we can start figuring out
what's going on.
I now changed the logging settings back to auto, stopped Tomcat, cleared
the logs directory and started Tomcat. Attached are the files.
With regards to my "entire configuration", I'm not quite sure, which
files you would like to see. If you can tell me which are the relevant
bits and pieces I'll be happy to post them too.

Thanks for taking the time...

Thomas
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 MÃŒnchen
Registergericht: Amtsgericht MÃŒnchen, HRB 88283
GeschÀftsfÌhrer: Albert Fuss
Christopher Schultz
2010-12-17 17:55:22 UTC
Permalink
Thomas,
Post by Thomas Kloeber
I changed the "auto"-settings for Stdout and Stderr in tomcat6w to
"C:\tmp". Tomcat duly created the files there, but stderr still remains
empty.
I now changed the logging settings back to auto, stopped Tomcat, cleared
the logs directory and started Tomcat. Attached are the files.
I can see an stderr file in there. Were you expecting anything to be in
it immediately after startup? Silly question: how are you writing to stderr?

BTW: you posted some passwords in your log files. You might want to go
and change those, now, unless it was all some kind of test data.
Post by Thomas Kloeber
With regards to my "entire configuration", I'm not quite sure, which
files you would like to see. If you can tell me which are the relevant
bits and pieces I'll be happy to post them too.
I was thinking of your conf/logging.properties file as well as your
configuration for tomcat6w.exe. Describing the log config from
tomcat6w.exe (as you have done) and posting logging.properties should be
enough.

There is a "swallowOutput" attribute on the <Context> element (found in
conf/server.xml if you are a bad boy, or in your webapp's
META-INF/context.xml, or in conf/[service]/[host]/[webapp].xml. If set
to "true" (it defaults to "false"), then your stdout and stderr will be
redirected to the application's log file which is configured in
conf/logging.properties.

- -chris
Thomas Kloeber
2010-12-20 08:40:48 UTC
Permalink
Hi Chris,
Post by Christopher Schultz
I can see an stderr file in there. Were you expecting anything to be in
it immediately after startup? Silly question: how are you writing to stderr?
yes, I put some output in one of my servlets, just to test this.
I'm using System.stderr and System.stdout.
Post by Christopher Schultz
BTW: you posted some passwords in your log files. You might want to go
and change those, now, unless it was all some kind of test data.
yup, I know, it's only test data...
Post by Christopher Schultz
I was thinking of your conf/logging.properties file as well as your
configuration for tomcat6w.exe. Describing the log config from
tomcat6w.exe (as you have done) and posting logging.properties should be
enough.
see attachment
Logging set up from tomcat6w:

* Level: Info
* Log path: <apache install dir>\logs
* Log prefix: jakarta_service_
* Redirect Stdout: auto
* Redirect Stderr: auto
Post by Christopher Schultz
There is a "swallowOutput" attribute on the<Context> element (found in
conf/server.xml if you are a bad boy, or in your webapp's
META-INF/context.xml, or in conf/[service]/[host]/[webapp].xml. If set
to "true" (it defaults to "false"), then your stdout and stderr will be
redirected to the application's log file which is configured in
conf/logging.properties.
this attribute is not set anywhere.

Thomas
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 MÃŒnchen
Registergericht: Amtsgericht MÃŒnchen, HRB 88283
GeschÀftsfÌhrer: Albert Fuss
Christopher Schultz
2010-12-20 20:29:56 UTC
Permalink
Thomas,
Post by Thomas Kloeber
Hi Chris,
Post by Christopher Schultz
I can see an stderr file in there. Were you expecting anything to be in
it immediately after startup? Silly question: how are you writing to stderr?
yes, I put some output in one of my servlets, just to test this.
I'm using System.stderr and System.stdout.
No wonder it's not working: System.stdout and System.stderr don't exist
as far as I know. Did you mean System.err and System.out? Precision
counts, especially when things aren't working the way you expect them to be.
Post by Thomas Kloeber
Post by Christopher Schultz
I was thinking of your conf/logging.properties file as well as your
configuration for tomcat6w.exe. Describing the log config from
tomcat6w.exe (as you have done) and posting logging.properties should be
enough.
see attachment
:( Attachments are often stripped from posts to the list. Try just
copy-and-pasting inline.
Post by Thomas Kloeber
* Level: Info
* Log path: <apache install dir>\logs
* Log prefix: jakarta_service_
* Redirect Stdout: auto
* Redirect Stderr: auto
Someone more familiar with win32 will have to comment on what those
settings are expected to produce. Note that the "Log*" parameters have
nothing to do with stdout/stderr: they are for reporting (whatever) to
the Windows System Log.

The documentation I can find for the --StdOutput and --StdError
command-line parameters seem to indicate that they describe a filename.
I would expect "auto" to be the filename. If you haven't specified the
path, you will have to check the working directory of the service to
determine where that file will try to be written.

I'm not sure if Tomcat's service wrapper will fail silently or angrily
if files cannot be created. If I were you, I'd specify an exact
filename, including full path, for the "Redirect Stdout" and "Redirect
Stderr" settings, and make sure that the effective user running the
Tomcat service (TOMCAT? LOCAL_SERVICE?) has rights to write to that
file/directory.
Post by Thomas Kloeber
Post by Christopher Schultz
There is a "swallowOutput" attribute on the <Context> element (found in
conf/server.xml if you are a bad boy, or in your webapp's
META-INF/context.xml, or in conf/[service]/[host]/[webapp].xml. If set
to "true" (it defaults to "false"), then your stdout and stderr will be
redirected to the application's log file which is configured in
conf/logging.properties.
this attribute is not set anywhere.
Good to know.

- -chris
Thomas Kloeber
2010-12-21 07:43:34 UTC
Permalink
Chris,
Post by Christopher Schultz
No wonder it's not working: System.stdout and System.stderr don't exist
as far as I know. Did you mean System.err and System.out? Precision
counts, especially when things aren't working the way you expect them to be.
you are right. Of course I use System.err and System.out....
Post by Christopher Schultz
Post by Thomas Kloeber
Post by Christopher Schultz
I was thinking of your conf/logging.properties file as well as your
configuration for tomcat6w.exe. Describing the log config from
tomcat6w.exe (as you have done) and posting logging.properties should be
enough.
see attachment
:( Attachments are often stripped from posts to the list. Try just
copy-and-pasting inline.
my last attachment went through even so I go an error message. This time
I didn't get a message so I would have thought it's ok.
I now put it at the end of the message.
Post by Christopher Schultz
Post by Thomas Kloeber
* Level: Info
* Log path:<apache install dir>\logs
* Log prefix: jakarta_service_
* Redirect Stdout: auto
* Redirect Stderr: auto
Someone more familiar with win32 will have to comment on what those
settings are expected to produce. Note that the "Log*" parameters have
nothing to do with stdout/stderr: they are for reporting (whatever) to
the Windows System Log.
The documentation I can find for the --StdOutput and --StdError
command-line parameters seem to indicate that they describe a filename.
I would expect "auto" to be the filename. If you haven't specified the
path, you will have to check the working directory of the service to
determine where that file will try to be written.
I'm not sure if Tomcat's service wrapper will fail silently or angrily
if files cannot be created. If I were you, I'd specify an exact
filename, including full path, for the "Redirect Stdout" and "Redirect
Stderr" settings, and make sure that the effective user running the
Tomcat service (TOMCAT? LOCAL_SERVICE?) has rights to write to that
file/directory.
this is exactly what I did on a previous suggestion. I replaced the
"auto" bits with "C:\tmp\stderr" and "C:\tmp\stdout". Tomcat creates the
files and writes into stdout. It also creates stderr but it remains
empty. When I set it to "auto" the files are created in the standard log
directory with the names stdout_XXX.log and stderr_XXX.log where XXX is
the date the files were created.

So from this behaviour I would say, that these settings are for output
of Tomcat (too).

Thomas

logging.properties:

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

handlers = 1catalina.org.apache.juli.FileHandler,
2localhost.org.apache.juli.FileHandler,
3manager.org.apache.juli.FileHandler,
4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.FileHandler,
java.util.logging.ConsoleHandler

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3manager.org.apache.juli.FileHandler.prefix = manager.

4host-manager.org.apache.juli.FileHandler.level = FINE
4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter


############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers =
2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers
= 3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers
= 4host-manager.org.apache.juli.FileHandler

# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
#org.apache.catalina.startup.ContextConfig.level = FINE
#org.apache.catalina.startup.HostConfig.level = FINE
#org.apache.catalina.session.ManagerBase.level = FINE
#org.apache.catalina.core.AprLifecycleListener.level=FINE
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 MÃŒnchen
Registergericht: Amtsgericht MÃŒnchen, HRB 88283
GeschÀftsfÌhrer: Albert Fuss
Christopher Schultz
2010-12-21 20:18:31 UTC
Permalink
Thomas,
Post by Thomas Kloeber
Post by Christopher Schultz
I'm not sure if Tomcat's service wrapper will fail silently or angrily
if files cannot be created. If I were you, I'd specify an exact
filename, including full path, for the "Redirect Stdout" and "Redirect
Stderr" settings, and make sure that the effective user running the
Tomcat service (TOMCAT? LOCAL_SERVICE?) has rights to write to that
file/directory.
this is exactly what I did on a previous suggestion. I replaced the
"auto" bits with "C:\tmp\stderr" and "C:\tmp\stdout". Tomcat creates the
files and writes into stdout.
Excellent.
Post by Thomas Kloeber
It also creates stderr but it remains empty.
:(

That might be a bug in the service wrapper. Can you re-test with 6.0.29
and a minimal WAR file (nothing but a .jsp that prints to both stdout
and stderr should do it)? If it still fails, please file a bug in bugzilla:

https://issues.apache.org/bugzilla/
Post by Thomas Kloeber
When I set it to "auto" the files are created in the standard log
directory with the names stdout_XXX.log and stderr_XXX.log where XXX is
the date the files were created.
Sorry, I didn't catch that, earlier.
Since stdout is working, swallowOutput isn't in effect, which means that
the contents of logging.properties aren't really relevant. Sorry for the
misstep on my part.

That logging.properties looks pretty stock, anyway.

- -chris
André Warnier
2010-12-21 20:50:42 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thomas,
Post by Thomas Kloeber
Post by Christopher Schultz
I'm not sure if Tomcat's service wrapper will fail silently or angrily
if files cannot be created. If I were you, I'd specify an exact
filename, including full path, for the "Redirect Stdout" and "Redirect
Stderr" settings, and make sure that the effective user running the
Tomcat service (TOMCAT? LOCAL_SERVICE?) has rights to write to that
file/directory.
this is exactly what I did on a previous suggestion. I replaced the
"auto" bits with "C:\tmp\stderr" and "C:\tmp\stdout". Tomcat creates the
files and writes into stdout.
Excellent.
Post by Thomas Kloeber
It also creates stderr but it remains empty.
:(
That might be a bug in the service wrapper. Can you re-test with 6.0.29
and a minimal WAR file (nothing but a .jsp that prints to both stdout
https://issues.apache.org/bugzilla/
Post by Thomas Kloeber
When I set it to "auto" the files are created in the standard log
directory with the names stdout_XXX.log and stderr_XXX.log where XXX is
the date the files were created.
Sorry, I didn't catch that, earlier.
Since stdout is working, swallowOutput isn't in effect, which means that
the contents of logging.properties aren't really relevant. Sorry for the
misstep on my part.
That logging.properties looks pretty stock, anyway.
And if, in the tomcat6w.exe gui, you navigate to the "Java" tab, what are the options
mentioned there for the JVM ?
(There might be a "-D" there which redirects the JVM stderr) (which is really the stderr
you are looking for here).
Christopher Schultz
2010-12-21 21:39:30 UTC
Permalink
André,
Post by André Warnier
And if, in the tomcat6w.exe gui, you navigate to the "Java" tab, what
are the options mentioned there for the JVM ?
(There might be a "-D" there which redirects the JVM stderr) (which is
really the stderr you are looking for here).
Is there a system property that redirects stderr?

- -chris
André Warnier
2010-12-22 00:24:48 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
André,
Post by André Warnier
And if, in the tomcat6w.exe gui, you navigate to the "Java" tab, what
are the options mentioned there for the JVM ?
(There might be a "-D" there which redirects the JVM stderr) (which is
really the stderr you are looking for here).
Is there a system property that redirects stderr?
I thought there was, but I may be wrong. There is one which allows to set the directory
for temporary files, I'm quite sure.
And in the IBM java, I saw "os400.stderr|stdout|stdin" properties to do that.
But not in Sun pardon Oracle Java I guess.
Thomas Kloeber
2010-12-22 07:27:31 UTC
Permalink
Post by André Warnier
And if, in the tomcat6w.exe gui, you navigate to the "Java" tab, what
are the options mentioned there for the JVM ?
(There might be a "-D" there which redirects the JVM stderr) (which is
really the stderr you are looking for here).
following are the settings (looks like all standard to me - never
touched 'em anyways):

Java Virtual Machine: C:\Programme\Java\jre6\bin\client\jvm.dll
Java Classpath: C:\Programme\Apache Software Foundation\Tomcat
6.0\bin\bootstrap.jar
Java Options:
-Dcatalina.home=C:\Programme\Apache Software Foundation\Tomcat 6.0
-Dcatalina.base=C:\Programme\Apache Software Foundation\Tomcat 6.0
-Djava.endorsed.dirs=C:\Programme\Apache Software Foundation\Tomcat
6.0\endorsed
-Djava.io.tmpdir=C:\Programme\Apache Software Foundation\Tomcat
6.0\temp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Programme\Apache Software
Foundation\Tomcat 6.0\conf\logging.properties
Initial memory pool: <empty>
Maximum memory pool: <empty>
Thread stack size: <empty>
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 MÃŒnchen
Registergericht: Amtsgericht MÃŒnchen, HRB 88283
GeschÀftsfÌhrer: Albert Fuss
Thomas Kloeber
2010-12-22 11:35:14 UTC
Permalink
Some additional info, which I just saw and which looks strange to me:
the stdout_XXX.log doesn't change it's date.
That is to say that I have stdout_20101221.log which also contains log
entries from today, 12-22. I was under the impression that Tomcat
automatically closes the file at midnight and creates a new one with the
appr. date...

Thomas
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 MÃŒnchen
Registergericht: Amtsgericht MÃŒnchen, HRB 88283
GeschÀftsfÌhrer: Albert Fuss
Konstantin Kolinko
2010-12-22 11:44:24 UTC
Permalink
Some additional info, which I just saw and which looks strange to me: the
stdout_XXX.log doesn't change it's date.
That is to say that I have stdout_20101221.log which also contains log
entries from today, 12-22. I was under the impression that Tomcat
automatically closes the file at midnight and creates a new one with the
appr. date...
That is service runner (Apache Commons Daemon) that manages those
stdout, stderr files.

http://commons.apache.org/daemon/

Tomcat itself has nothing to do with them.

BTW, why are not you using a proper logging API? Any of:
a) GenericServlet.log(), ServletContext.log()
b) java.util.logging
c) Apache Commons Logging
??

Best regards,
Konstantin Kolinko
Thomas Kloeber
2010-12-22 12:10:19 UTC
Permalink
Post by Konstantin Kolinko
Some additional info, which I just saw and which looks strange to me: the
stdout_XXX.log doesn't change it's date.
That is to say that I have stdout_20101221.log which also contains log
entries from today, 12-22. I was under the impression that Tomcat
automatically closes the file at midnight and creates a new one with the
appr. date...
That is service runner (Apache Commons Daemon) that manages those
stdout, stderr files.
http://commons.apache.org/daemon/
Tomcat itself has nothing to do with them.
a) GenericServlet.log(), ServletContext.log()
b) java.util.logging
c) Apache Commons Logging
??
because I came across the issue when I was trying to dump a stack trace
of an exception.
because will have to uuse some home-grown logging which I have not yet
implemented.

I'm just curious what's wrong with my Tomcat, Apache, Whatever setup and
I would like to understand why it behaves like it does.
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss
Thomas Kloeber
2010-12-17 07:45:54 UTC
Permalink
hmmm, I'm not sure if the attachment of my last post got through. How
can I post files on the list?
.
The scanned document was QUARANTINED.
The filename extension of attachment logs.zip violated the content
filtering rule zip files blocked.
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 MÃŒnchen
Registergericht: Amtsgericht MÃŒnchen, HRB 88283
GeschÀftsfÌhrer: Albert Fuss
Michael Ludwig
2010-12-17 11:56:06 UTC
Permalink
Post by Thomas Kloeber
hmmm, I'm not sure if the attachment of my last post got through.
It did get through.
Post by Thomas Kloeber
How can I post files on the list?
You could use http://pastebin.com/ or a similar service and post the
URL. Might even be the preferred way for large files.
--
Michael Ludwig
Loading...