Solved

suppressing startup.bat of Tomcat

Posted on 2014-10-03
3
363 Views
Last Modified: 2014-10-20
Hi;

I am using Tomcat 6&7 and i always start it from startup.bat and no problem at starting.

Once it starts, it echoes some lines to console which is fine again.

The issue is that my code causes some lines on the console in the end which i want to suppress. How can i suppress those lines?

Regards.
0
Comment
Question by:jazzIIIlove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Expert Comment

by:ashok choudhary
ID: 40367826
You need to update your log4j.properties file
and use loggers in you code.
0
 

Accepted Solution

by:
ashok choudhary earned 250 total points
ID: 40367841
Or in Tomcat /conf /logging.properties

Edit conf/logging.properties and change the line

.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
to

.handlers = 1catalina.org.apache.juli.FileHandler
Then it will only log to catalina..log, not to the console.
0
 
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 250 total points
ID: 40369557
You could redirect the output that you're getting from the start up script like this:

startup.bat >startup_standard_output 2>startup_error_output

This way you'd get 2 files that contain the output that would normally appear on screen.

In case your code is sending output to standard error then just do this:

startup.bat 2>startup_error_output

And if you're not interested in any output:

startup.bat 2>&1 >/dev/null
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question