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>
|