Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where can I see my System.out.println in Apache Tomcat 5.5.9 Server

 
Pratibha Malhotra
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can I see my System.out.println in Apache Tomcat 5.5.9 Server
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Easiest way is to see it in console window from which you started. Otherwise it should be redirected to the log file.
 
Pratibha Malhotra
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Tomacat 5.5.9, console doesn't stay open. It closes after server has started.
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
than look into log. I think there is some switch when starting tomcat (catalina.bat) which will the window stay open.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Tomcat 5.5.9, console doesn't stay open. It closes after server has started.

That depends entirely on how it is started and whether it is being run as a service.
If executing from startup.bat uses javaw.exe the window never opens. Browse around in the catalina.bat and setclasspath.bat files to see where all sorts of decisions are made.
When developing a servlet, you should not be running Tomcat as a service, it just complicates things.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic