• 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

Eclipse + APACHE Tomcat 6.0

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm able to start up the server from eclipse, no warning messages, however, the console output in eclipse is RED. This means that the info messages are printed as standard error output. Any ideas how to fix the error?

Thanks
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just because text is written to stderr does not mean that it is error text. Tomcat using java util logging, and if you read the logging guide at http://java.sun.com/j2se/1.5.0/docs/guide/logging/overview.html you will see this statement:

ConsoleHandler: A simple handler for writing formatted records to System.err



 
Andreas Markitanis
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply Peter. I understand that because text is written to stderr it does not necessarily mean that it's error text. I just like to avoid it anyway. Do you know how?

Thanks.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Complain to the JVM developers and tell them that logging to stderr is stupid. Good luck with that.

(Sorry for the cynicism. )

You could always edit java.util.logging.ConsoleHandler.java and change this line:

setOutputStream(System.err);

to

setOutputStream(System.out);
 
reply
    Bookmark Topic Watch Topic
  • New Topic