I use tomcat 4.1.27 on Windows 2000. In the directory <TOMCAT_HOME>\logs there are two log files (among others) stdout.log and stderr.log, one for the standard output and the other for standard error.
When I use the command System.err.print the string goes to stdout.log instead of stderr.log. The same happens in exception.printStackTrace(System.err);
On starting up tomcat some messages are printed in stderr.log.
PS:
I installed tomcat as a service using the following command:
%CATALINA_HOME%\bin\tomcat -install "%service_name%" %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log
When I use the command System.err.print the string goes to stdout.log instead of stderr.log. The same happens in exception.printStackTrace(System.err);
On starting up tomcat some messages are printed in stderr.log.
PS:
I installed tomcat as a service using the following command:
%CATALINA_HOME%\bin\tomcat -install "%service_name%" %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log