Solved

Tomcat - Printing our Exceptions in catalina.out

Posted on 2004-09-07
5
213 Views
Last Modified: 2010-03-04

Hey,

Just moved from Tomcat 5.0.19 to 5.0.27 and for some reason when a exception is thrown it doesnt get printed in catalina.out as it does in the 5.0.19 version.

Any one have any idea why this is? Is there different config needed for Tomcat 5.0.27??


Thanks,
Sue
0
Comment
Question by:fyness
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
tanghm earned 125 total points
ID: 12003192
Hi,

Try to change the appropriate Debug Level of Service(Catalina) -> Engine Properties in the Tomcat Server Administration from 0 to your acquired level. Save changes and Commit, you will see catalina_log.todaydate.txt created. The default level of 0 doesn't create the catalina_log file in version 5.0.27.
0
 

Author Comment

by:fyness
ID: 12004164
Thanks very much for your reply. How do I change the debug level, I've never do it and  what should the acquired level be?


Thanks again,
Suzy
0
 
LVL 1

Expert Comment

by:tanghm
ID: 12004345
Before that, why would you want to see exception thrown at Catalina level ? Exception thrown at this level would most probably be severe exception at the Tomcat engine itself. If you want to see exception throws by your application, its in localhost_log.date.txt.

To enable catalina.out logging:
Open up Tomcat Server Administration (http://yourtomcatserver:port/admin).
Enter your password (username is admin, password is stored in conf\tomcat-users.xml)
Click on Tomcat Server -> Service(Catalina)
Under Engine properties, change Debug Level from 0 to any level you preferred. Higher number generates more detail.
Save and Commit.
Restart the Tomcat service.
You should now see catalina.out log in logs folder

For your reference:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

758 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now