• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Important question: Tomcat Configuration

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
application.
Thank You All Very Much,
Nick Ueda
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Bill
 
Nick Ueda
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
Thanks,
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 /0.0.0.0:8009
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\jk2.properties
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know of any special configuration required.
Am I correct that your beans are executing but you don't see the messages?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic