Solved

Tomcat - Printing our Exceptions in catalina.out

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

13 Experts available now in Live!

Get 1:1 Help Now