• 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

How to start Tomcat without INFO: messages

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to start tomcat without the information messages like
Feb 25, 2004 3:36:18 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Feb 25, 2004 3:36:18 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2884 ms
Which config file do i need to change?
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you could install it as a service.. that way it won't open a console and you won't see those messages. (that's for windows).

there's a number of tricks you can pull in unix (like redirecting stdin/stdout/stderr)
 
Harsha Huddar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mike.
I guess this has got to do with Log4j...I need to locate which config file is being used by Tomcat 5 and set the console appender to OFF.
I dont want to install it as a service.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
putting a log4j.properties file in Tomcat's common/classes directory seems to work. I've been able to configure logging to be less verbose on certain types of errors.
 
Saloon Keeper
Posts: 27707
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mike Curwen:
you could install it as a service.. that way it won't open a console and you won't see those messages. (that's for windows).

there's a number of tricks you can pull in unix (like redirecting stdin/stdout/stderr)


Actually, I believe that the equivalent in Windows would be on the order of "TOMCAT.BAT START >NUL:"
Possibly spelling "NUL" as "NULL" with optional colon. There are some strange artifacts in Windows device names having to do with backwards compatibility to bugs in MS-DOS V2.2 or thereabouts.
However on a production Windows box, I'd install as a service so I wouldn't have to log on just to get Tomcat running. On a test machine, I never pay attention to the "noise" messages anyway. Unless something breaks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic