Tomcat 异常:Context [] startup failed due to previous errors

启动Tomcat异常: 详细的异常信息:

五月 15, 2018 9:49:05 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
五月 15, 2018 9:49:05 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
五月 15, 2018 9:49:05 下午 org.springframework.context.support.AbstractApplicationContext doClose
信息: Closing Root WebApplicationContext: startup date [Tue May 15 21:49:04 CST 2018]; root of context hierarchy
[2018-05-15 09:49:05,697] Artifact campuso2o:war: Error during artifact deployment. See server log for details.

原因是:代码中删除了一个自定义的过滤器类CoreFilter。而web.xml的文件的配置还保存原来的配置,从而导致找不该类而启动失败。

  <filter>
    <filter-name>cors</filter-name>
    <filter-class>com.mark.controller.common.CoreFilter</filter-class>
  </filter>

补充:
出现的原因:Context [] startup failed due to previous errors
装载于该博客

1 web.xml文件找不到类。

2.如果在应用spring的话,在配置文件applicationContext.xml中定义的类、xml文件找不到也会报这个错误。

3.在web.xml,struts.xml,applicationContext.xml文件中自身有任何一点错误都可能引起上面的这个问题,而不仅仅是附带的文件错误导致。

4.如果使用ibatis的话,在SqlMapConfig.xml中定义的xml文件找不到也会报这个错误。(hibernate的配置在整合spring的时候使用spring的配置文件)

5.JDK的版本问题,最好使用JDK5.0 或者更高的版本。

6.Eclipse和tomcat的版本兼容问题

7.框架整合的过程中在导入到lib下的jar包冲突也可能产生该错误。

8 jar包的缺少以及jar包的版本也可产生该错误。
其他的原因

猜你喜欢

转载自blog.csdn.net/ycd500756/article/details/80329994