File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Important question: Tomcat Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Important question: Tomcat Configuration" Watch "Important question: Tomcat Configuration" New topic

Important question: Tomcat Configuration

Nick Ueda
Ranch Hand

Joined: Jun 17, 2003
Posts: 40
Hello Everyone,
I need an a straight answer to a problem that I am having with
Tomcat 4.1.27. I have been told that whenever I am trying to
debug my web apps that I can use System.out.println in the beans and servlets to trace what is going on and that the output of these messages would be sent to standard output(console). I have tried this and I don't see any output at all. I have looked through the logs directory in stdout.txt and the messages aren't being sent there either.
Can anyone please tell me how this is done?
This is very important for me to know so I can debug my
Thank You All Very Much,
Nick Ueda
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
I have no problem seeing System.out messages on the console with WinXp and Tomcat 4.1.27. What do you see on the console when you start Tomcat? I see various INFO messages.
Nick Ueda
Ranch Hand

Joined: Jun 17, 2003
Posts: 40
I am also using XP, I was wondering if maybe my install was not correct..
even though I have no problem running JSPs and Servlets...
Is there a special setting configuration that I need to use?
I believe the System.out.println is supposed to show up in
the "Start Tomcat" window...I have System.out.println scattered all
throughout my beans but I don't see anything in the console window...
I really appreciate your help,
Nick Ueda
"Start Tomcat" Console shows...
Sep 20, 2003 12:13:10 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 20, 2003 12:13:12 AM org.apache.struts.util.PropertyMessageResources(init)
INFO: Initializing, config='org.apache.struts.util.LocalStrings',returnNull=true
Sep 20, 2003 12:13:12 AM org.apache.struts.util.PropertyMessageResources (init)
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull = true
Sep 20, 2003 12:13:13 AM org.apache.struts.util.PropertyMessageResources (init)
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull = true
Sep 20,2003 12:13:16 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Sep 20, 2003 12:13:16 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /
Sep 20, 2003 12:13:16 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/109 config=D:\Tomcat 4.1\conf\
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
I don't know of any special configuration required.
Am I correct that your beans are executing but you don't see the messages?
I agree. Here's the link:
subject: Important question: Tomcat Configuration
Similar Threads
Need some help me java mail-smtp
stdout -- simple logging
Getting rid Struts [DEBUG] output (log4j)
SMTP protocol : please help !
Tomcat and sockets for receiving and transmiting data