aspose file tools*
The moose likes Tomcat and the fly likes Where can I see my System.out.println in Apache Tomcat 5.5.9 Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Where can I see my System.out.println in Apache Tomcat 5.5.9 Server" Watch "Where can I see my System.out.println in Apache Tomcat 5.5.9 Server" New topic
Author

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

Pratibha Malhotra
Ranch Hand

Joined: Dec 21, 2003
Posts: 199
Where can I see my System.out.println in Apache Tomcat 5.5.9 Server
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Easiest way is to see it in console window from which you started. Otherwise it should be redirected to the log file.


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Pratibha Malhotra
Ranch Hand

Joined: Dec 21, 2003
Posts: 199
In Tomacat 5.5.9, console doesn't stay open. It closes after server has started.
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
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

Joined: Mar 22, 2000
Posts: 12778
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where can I see my System.out.println in Apache Tomcat 5.5.9 Server