• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

What does it mean when no catalina log files are being created ?  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Good folks

Today I wrote a simple servelet and ran it and I am able to see it working.

But no catalina log files are being created today. Yesterday I have catalina log files at C:\Program Files\Apache Software Foundation\Tomcat 7.0\logs.

Does catalina log files are genearated only when there are issues?

Thank You folks
 
author & internet detective
Posts: 39234
727
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

jasonsmith nath wrote:Does catalina log files are genearated only when there are issues?


No. It should get generated when Tomcat is running.
 
Rancher
Posts: 1170
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you keep your tomcat running or maded any changes at all?
Cause if you kept it running and there weren't any changes maded, it would make sence that there are no logs, since there's nothing to report
 
Saloon Keeper
Posts: 20639
122
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The catalina.out file is simply the stdout/stderr stream from the Tomcat server app. The standard scripts used to run Tomcat (such as catalina.bat) redirect that stdout to go to TOMCAT_HOME/logs/catalina.out, but non-standard methods of execution may not do so, and instead route it elsewhere, let it default to whatever console Tomcat might have been launched from, or the stdout stream might simply be discarded if it's routed to NULL: or a non-windowed console. This is one of the reasons why webapps should not output to System.out or System.err, since they will go to Tomcat's stdout and stderr streams.

The catalina.out data is quite chatty and starts displaying messages from the moment that Tomcat is first launched, so if you don't see any messages, then consider the reasons I just listed as to possible causes.

In addition to catalina.out, the host subsystem(s) of Tomcat also write logfiles, usually named something like TOMCAT_HOME/logs/xxxxx_localhost.log (or something close enough). These logs sometimes contain critical information when you have a problem but the catalina.out log does not show it. The default location for the host logfiles is part of the Tomcat jvm configuration.

Regular applications are expected to handle their own logging. For example, if a webapp uses log4j, it would typically have a /WEB-INF/classes/log4j.properties or /WEB-INF/classes/log4j.xml config file.
 
We noticed he had no friends. So we gave him this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!