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包的版本也可产生该错误。
其他的原因

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值