Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse + APACHE Tomcat 6.0

 
Andreas Markitanis
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic