tomcat7 - Tomcat creates excessive output at webapp startup -
please see solution below, error description bit fuzzy since did not have idea wrong.
i trying deploy new tomcat7 on linux, later whole machine cloned, set now. tomcat itsel starts properly, when trying deploy our application copying war file webapps dir, catalina error out file flooded 50mb of fine logging (see portion of below), , nothing put normal output file, , normal log file.
the same not happen sample.war file provided tomcat docs (\appdev\sample\sample.war), starts usual lines of log.
the logging.properties file default 1 every 'fine' replaced 'info', , every other tomcat file unmodified.
what is customized: tomcat run jsvc , customized startup script. catalina_base
separated catalina_home
, tomcat run non-root user. edit: not sure if matters, startup script sets these startup parameters regarding logging: -djava.util.logging.config.file=<logging.proprties' path> -djava.util.logging.manager=org.apache.juli.classloaderlogmanager
, console out , console out error set startup script.
most of error file's content comes class org.apache.tomcat.util.digester.digester
, seems harmless fine level log.
there no severe, error logs, , there's 1 warning regarding unset locale, , 1 below, @ end of log:
jul 31, 2013 12:34:24 pm org.apache.myfaces.component.html.util.extensionsfilter <init> warning: please adjust web.xml use org.apache.myfaces.webapp.filter.extensionsfilter
the logging.properties looks now:
handlers = 1catalina.org.apache.juli.filehandler, 2localhost.org.apache.juli.filehandler, 3manager.org.apache.juli.filehandler .handlers = 1catalina.org.apache.juli.filehandler ############################################################ # handler specific properties. 1catalina.org.apache.juli.filehandler.level = info 1catalina.org.apache.juli.filehandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.filehandler.prefix = catalina. 2localhost.org.apache.juli.filehandler.level = info 2localhost.org.apache.juli.filehandler.directory = ${catalina.base}/logs 2localhost.org.apache.juli.filehandler.prefix = localhost. 3manager.org.apache.juli.filehandler.level = info 3manager.org.apache.juli.filehandler.directory = ${catalina.base}/logs 3manager.org.apache.juli.filehandler.prefix = manager. ############################################################ # facility specific properties. org.apache.catalina.core.containerbase.[catalina].[localhost].level = info org.apache.catalina.core.containerbase.[catalina].[localhost].handlers = 2localhost.org.apache.juli.filehandler org.apache.catalina.core.containerbase.[catalina].[localhost].[/manager].level = info org.apache.catalina.core.containerbase.[catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.filehandler org.apache.commons.digester.digester.[catalina].level = info org.apache.commons.digester.digester.[catalina].handlers = 1catalina.org.apache.juli.filehandler org.apache.commons.digester.digester.[catalina].[localhost].level = info org.apache.commons.digester.digester.[catalina].[localhost].handlers = 2localhost.org.apache.juli.filehandler org.apache.commons.digester.digester.[catalina].[localhost].[/manager].level = info org.apache.commons.digester.digester.[catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.filehandler
edit2: added facility specific properties org.apache.tomcat.util.digester.digester
no success
why log go outfile, , not log file? sample.war's log goes both, it's lines per start/stop. regardless of destination, why there fine logging, when set info?
so please kindly adwise might doing wrong. can source of application , check , maybe modify stuff in it, not aware of it's internals. if there errors in it, don't think error output file should large, , logging should work default config.
the solution comes mustafa yuksel, described here. guy hero, had exact same issues , couldn't figure them out in weeks.
the first issue war file not use org.apache.tomcat.util.digester.digester
, in fact org.apache.commons.digester.digester.level
class used wrong logger. can mask fine logging line
org.apache.commons.digester.digester.level = info
the second issue had logging.properties in project, had eclipse include in our war files. project included additional logging.properties file had no idea about. included eclipse projects present jar files in /web-inf/lib/ have dig those.
Comments
Post a Comment