aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse + APACHE Tomcat 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse + APACHE Tomcat 6.0" Watch "Eclipse + APACHE Tomcat 6.0" New topic
Author

Eclipse + APACHE Tomcat 6.0

Andreas Markitanis
Greenhorn

Joined: Apr 15, 2010
Posts: 21
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

Joined: May 14, 2008
Posts: 5836
    
    7

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



JBoss In Action
Andreas Markitanis
Greenhorn

Joined: Apr 15, 2010
Posts: 21
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

Joined: May 14, 2008
Posts: 5836
    
    7

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);
 
 
subject: Eclipse + APACHE Tomcat 6.0