tomcat启动出现异常 Error filterStart

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 id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <list>
                <value>classpath:logging.properties</value>
            </list>
        </property>
    </bean>

  



posted on 2017-02-20 21:17  Paul_bai  阅读(2817)  评论(0编辑  收藏  举报

导航