• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get System.out.print()

 
Yuan Ye
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know how to get the standard output while deploying a servlet/jsp? Like in a servlet program, I coded System.out.print("sth"), where can I get the string message? Please give me a clue. Thanks.
 
Amer Khan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
clue:
Tomcats little black window
[ July 31, 2003: Message edited by: Amer Khan ]
 
amol re
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont know the details, but I think sometimes its impossible to see the standard output. I remember facing this problem and not getting a solution.
Has it got something to do with javaw/java?
Even I would like to get some clarification on the issue.
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3820
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Messages written to System.out are usually dumped into a generic (non-webapp specific) log file if the console is not available. For example, if you are running tomcat as a service, checkout <tomcat home>/logs/stdout.lot
Same thing with WebLogic and Resin.
Believe me, your messages are not lost. They must be there somewhere in one of the log files. Look harder
 
Amer Khan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
standalone/ tomcat-----------------------------> CONSOLE
 
Milena Khlabystova
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try [tomcat-install-dir]/logs/catalina.out
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic