Yes.

What about these ?

>    * 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.



Thomas Kloeber wrote:
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

André Warnier wrote on 13.12.2010 16:56:
Thomas Kloeber wrote:
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.

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.


------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to