• 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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: 39054
714
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.
 
Master Rancher
Posts: 915
17
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
 
Bartender
Posts: 20124
103
Android Eclipse IDE Linux
  • 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.
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!