?
Solved

suppressing startup.bat of Tomcat

Posted on 2014-10-03
3
Medium Priority
?
377 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 1000 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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

800 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