当前位置:首页 > IT技术

TOMCAT启动错误:严重: Error filterStart

时间:2019-06-30 01:42:06来源:IT技术作者:SEO探针小编阅读:90次「手机版」
 

error filterstart

在tomcat启动的时候报严重: ERROR filterStart这样的错误的原因有很多种,比如你在web.xml的配置语句写漏或写错或缺少某些jar包等等都有可能发生,子猴这里给出的不是针对某一具体错误如何解决,而是给出如何查找出错原因?

我发现网上很多朋友都碰到过这样的错误信息而束手无策,往往花费很多时间,而归根结底是不知道如何得知错误是怎么产生的,因为tomcat(往往都是使用的tomcat)只会在控制台给出很简单的两行出错信息。

但你是否知道,tomcat虽然在控制台只给出了简单的两行出错信息,但实际上在tomcat的日志信息中却给出了非常详细的出错信息呢?我相信很多朋友都抱怨tomcat在出错信息上给的不够明朗化,或许以前的版本是这样,子猴也并不是很了解,但至少6.0.x版本的绝对不是这样,在日志中给出的非常详细。

如果你是在本机上调试,日志文件的存放路径一般为:

/Tomcat 6.0/logs

这样的目录,你可以查看如localhost.2010-04-17.log

这样的日志文件,比如,子猴今天碰到了这样的tomcat在控制台打印的错误信息:严重: error filterstart,后来通过查看上面所说的日志,很快地就知道了错误是什么原因导致的,如下例:

严重: Exception starting filter struts2

Unable to load configuration. – file:/test/WebRoot/WEB-INF/classes/struts.xml:2:7

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)

at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)

at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)

at org.apache.catalina.core.APPlicationfilterconfig.getFilter(ApplicationFilterConfig.java:275)

at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)

at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)

at org.apache.catalina.core.Standardcontext.filterStart(StandardContext.java:3709)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)

并很快据此进行了更正,解决了这个问题,所以,子猴希望这篇文章能有助于此类问题的解决。

相关阅读

printf(),fprintf(),perror()

在C语言,linux中都会遇到这几个函数printf(),fprintf(),perror() 那么和上述三个函数对应的就是stdin,stdout,stderr。0就是stdin,表示输入流

新浪微博登录提示"sso package or sign error"的原

整合微博分享,添加新浪微博时,在认证时候提示sso package or sign error出现这个情况原因有好多个(https://open.weibo.com/qa/index.

打包jar出现Exported with compile errors 一类错误的

JAR creation failed. See details for additional information.Exported with compile errors: monitor_cms/src/cn/seisys/db/D

记录JSON parse error解决方法

JSON.stringify(data) data为请求接口的数据

在虚拟机安装Win7出现:directory ezboot not found err

在虚拟机安装Win7出现:directory ezboot not found error loading image:CDMENU.EZB 小编刚开始查询了各种方法解决该问题,也找到原

分享到:

栏目导航

推荐阅读

热门阅读