How do I disable initial messages from Tomcat like "Starting tomcat. Check logs/tomcat.log for error messages" I am starting Tomcat using integrated JVM inside my C++ process using JNI.

swarraj kulkarni

Unfortunately you can not do that. If you look into the Tomcat source code, which has the execute method, in this method at the end before calling ContextManager.init() method it directly sends the message output on the console by using following line of code:
Where "tomcat.start" is taken from files and the message corresponding to it is Starting tomcat. Check logs/tomcat.log for error messages
This is what you are trying to avoid, but unfortunately you can not do that, right now.. in future Tomcat team will put debug flag there and then by enabling or disabling it, you can avoid this message.

[You can also grab the source code, take out the offending line, and recompile. -Alex]

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact