Tomcat startup logs - SEVERE: Error filterStart how to get a stack trace?

后端 未结 16 863
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 11:50

When I start Tomcat I get the following error:

Jun 10, 2010 5:17:25 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jun 10, 2010          


        
16条回答
  •  -上瘾入骨i
    2020-12-07 12:09

    Tomcat does log the stacktrace, but it is not always clear where the log files are, when tomcat is started from an IDE. When I start it from IntelliJ, CATALINA_BASE is set to ${home}/.IntelliJIdea10/system/tomcat/Unnamed_r6-idea, and the log files are in in [CATALINA_BASE]/logs.

    To see the logs, either locate the log files, or edit [CATALINA_HOME]/conf/logging.properties to direct tomcat logger output to console. Below I added a second handler to the default tomcat configuration:

     org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
     org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
    

    Now the full stacktrace appears in the IntelliJ output:

     Dec 27, 2011 12:02:45 PM org.apache.catalina.core.StandardContext filterStart
     SEVERE: Exception starting filter filterChainProxy
     org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'filterChainProxy' is defined   at
     org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
     . . .
    

提交回复
热议问题