4

In my java code, I have System.out.println(...) statement which is invoked by jsp. But I don't see anything being written to tomcat console. I've googled around and seems no clear answer on it.

I'm using tomcat 6.0.

Thanks

Frank Fu
  • 778
  • 4
  • 8
  • 12
  • Possible duplicate http://stackoverflow.com/questions/1543997/jsp-where-system-out-println-prints – ukanth Jul 08 '10 at 07:11

2 Answers2

3

Usually (on default setup) the messages of the System.out.println(...) statement can be found in your ./apache-tomcat6.0/logs/catalina.out logfile.

nhahtdh
  • 55,989
  • 15
  • 126
  • 162
Erik
  • 3,777
  • 21
  • 27
  • 1
    there are some logs under logs directory, one of them is catalina.[date].log. But it doesn't have the output messages. – Frank Fu Jul 08 '10 at 15:40
  • the catalina.[date].log is a logfile that is turned over. if there are catalina.[date].logs, there must also be the catalina.out log somewhere. try: "find / -name catalina.out" – Erik Jul 09 '10 at 06:53
  • under installation home. I did "find . -iname catalina.out", didn't return anything. Not sure what's wrong. – Frank Fu Jul 09 '10 at 19:02
  • what logfiles beneath catalina.[date].log are there? Is there a catalina.[date].log file with a date from yesterday? Which is the newest date? – Erik Jul 10 '10 at 07:22
  • 2
    there are files like catalina.2010-07-08.log, host-manager.2010-07-08.log and manager.2010-07-08.log – Frank Fu Jul 12 '10 at 05:31
  • ok - then there must be a catalina-logfile too, since these files are the archived files from your logfile-rotation of the day before. I'm sorry, that I can't search the file for you on your system. Here you will find help about tomcat-logging: http://tomcat.apache.org/tomcat-5.5-doc/logging.html – Erik Jul 12 '10 at 06:51
2

Verify apache/tomcat/logs/stdout.log file.

nhahtdh
  • 55,989
  • 15
  • 126
  • 162