Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat standard error goes to standard out log file

Status
Not open for further replies.

evgeniosc

IS-IT--Management
Oct 5, 2002
75
CY
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top