tomcat启动中出现 Error filterStart异常, 没有任何堆栈信息,如下:
SEVERE: Error filterStart
Jul 6, 2012 3:39:05 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors

  

解决方法:

在scr/main/resources中添加一个配置文件,如logging.properties,内容如下

org.apache.catalina.core.ContainerBase.[Catalina].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler

  在spring中将改properties文件添加到classpath:

 <bean >
        <property name="locations">
            <list>
                <value>classpath:logging.properties</value>
            </list>
        </property>
    </bean>

  



相关文章:

  • 2021-08-04
  • 2022-12-23
  • 2021-05-19
  • 2021-05-26
  • 2021-05-14
  • 2021-04-27
  • 2021-05-27
  • 2022-02-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2021-05-15
相关资源
相似解决方案