3 Replies Latest reply on Dec 1, 2009 10:08 AM by Gregory Nikle

    how to disable error log in tomcat?

    Gregory Nikle Apprentice

      Hi
      Here is my tomcat log4j conf.



      log4j.rootLogger=ERROR, R 
      log4j.appender.R=org.apache.log4j.RollingFileAppender 
      log4j.appender.R.File=${catalina.home}/logs/tomcat.log 
      log4j.appender.R.MaxFileSize=50MB 
      log4j.appender.R.MaxBackupIndex=1
      log4j.appender.R.layout=org.apache.log4j.PatternLayout 
      log4j.appender.R.layout.ConversionPattern=%d %-5p [%c] %m%n
      log4j.logger.org.apache.catalina=ERROR, R
      
      log4j.logger.org.jboss.seam.security.NotLoggedInException=FATAL, R
      log4j.logger.java.lang.IllegalStateException=FATAL, R
      log4j.logger.org.jboss.seam.InstantiationException=FATAL, R
      log4j.logger.org.jboss.seam.jsf.SeamPhaseListener=FATAL, R
      log4j.logger.org.jboss.web.tomcat.service.jca.CachedConnectionValve=FATAL, R
      log4j.logger.org.hibernate.StaleObjectStateException=FATAL, R
      log4j.logger.javax.persistence.OptimisticLockException=FATAL, R
      log4j.logger.javax.faces.application.ViewExpiredException=FATAL, R



      at the end of log4j.properties, I've added to do not log ViewExpiredException, but I still get this seam app error:




      WARNING: executePhase(RESTORE_VIEW
      1,com.sun.faces.context.FacesContextImpl@7aad0bd6) threw exception
      javax.faces.application.ViewExpiredException: viewId:/registered.seam
      - View /registered.seam could not be restored.
              at com.sun.faces.lifecycle.RestoreViewPhase.execute
      (RestoreViewPhase.java:187)
              at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:
      251)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:
      117)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
      (ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter
      (ApplicationFilterChain.java:206)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter
      (SeamFilter.java:83)
              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:
      85)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter
      (SeamFilter.java:69)
              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:
      64)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter
      (SeamFilter.java:69)
              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter
      (SeamFilter.java:69)
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:
      141)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter
      (SeamFilter.java:69)
              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter
      (SeamFilter.java:69)
              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
      (ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter
      (ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke
      (StandardWrapperValve.java:233)
              at org.apache.catalina.core.StandardContextValve.invoke
      (StandardContextValve.java:191)
              at org.apache.catalina.core.StandardHostValve.invoke
      (StandardHostValve.java:128)
              at org.apache.catalina.valves.ErrorReportValve.invoke
      (ErrorReportValve.java:102)
              at org.apache.catalina.core.StandardEngineValve.invoke
      (StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service
      (CoyoteAdapter.java:286)
              at org.apache.coyote.http11.Http11Processor.process
      (Http11Processor.java:845)
              at org.apache.coyote.http11.Http11Protocol
      $Http11ConnectionHandler.process(Http11Protocol.java:583)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
      447) 



      can anybody help mi do disable this logging?