Solved

Tomcat - Printing our Exceptions in catalina.out

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

Suggested Solutions

Title # Comments Views Activity
tomcat LDAP authentication issue 3 168
Leverage Browser Caching 7 67
Apache 2.2 on Windows 2008 32 75
maybe no no httpd.conf 6 47
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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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