Solved

suppressing startup.bat of Tomcat

Posted on 2014-10-03
3
354 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses

737 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