aspose file tools*
The moose likes Tomcat and the fly likes Want to see tomcat console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Want to see tomcat console" Watch "Want to see tomcat console" New topic
Author

Want to see tomcat console

sachin pachpute
Ranch Hand

Joined: Nov 04, 2004
Posts: 38
Hi,

Tomcat is already running on my machine but DOS window is closed, so I can not see "Systen.out.print" statements printed by application on tomcat console. I want to see output on Dos tomcat console. Can you help me in this.

Even if I run Tomcat.exe, it is getting closed automatically.
[ January 10, 2007: Message edited by: sachin pachpute ]
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
start it from the command line, not through the windows explorer.
Aitor Imaz
Greenhorn

Joined: Jan 30, 2005
Posts: 8
Look for the stdout.log file on the log folder. You should be able to see the console output there.
SriSai satish kumar
Greenhorn

Joined: Mar 04, 2006
Posts: 2
HI,
I have installed tomcat and just stared learing Servlets . My Hello World Application went fine and the tomcat is running fine. BUt i am unable to see the messages which i have included in my HelloWorld.java ( BY System.out.println()) are not coming in the tomcat console.

Please let me know do i need to change some config files ( .xml) to be able to see the print messages in tomcat console.

Thank you,
Sri
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Aitor Imaz:
Look for the stdout.log file on the log folder. You should be able to see the console output there.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bill Rogers
Greenhorn

Joined: May 12, 2007
Posts: 1
I have started using Tomcat 5.5 and Tomcat 6 (default installation) and was previously a user of Tomcat 3,4,5. I am using a tag library that writes log messages to System.out that I need to see. These have moved around over the years, but most recently (Tomcat 5) they were in catalina.out. They no longer appear anywhere. There is no stdout.log file on my computer(s) at all. Any idea how I can get them to reappear?
Rajasekhar Pentakota
Ranch Hand

Joined: Aug 28, 2007
Posts: 38



hi

To enable tomcat logs under tomcat/logs folder do the following steps

1) Go to Catalina.bat and find the following line
set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

Uncomment this line and save the file. Now run the startup.bat. Now its possible to view the log files.

Hope this serves the purpose.


Thanks
Raja
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

Rajasekhar, please don't Wake The Zombies. This topic is nearly 2 years old and I really doubt the original poster is hanging around hoping for an answer.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Rajasekhar Pentakota
Ranch Hand

Joined: Aug 28, 2007
Posts: 38

Hi Joe

I understand your concern. Rules can be broken for the sake of Others. I thread seems incomplete so I made it complete with useful answer. When anyone watchs this forum for solution it might help.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Want to see tomcat console