Solved

Tomcat - Printing our Exceptions in catalina.out

Posted on 2004-09-07
5
227 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
[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
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

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…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

734 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