`
jefferson
  • 浏览: 279516 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

Tomcat启动时报filterStart错

阅读更多

今天在在web.xml里加入了过滤类,错误信息如下:

May 11, 2006 11:42:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
May 11, 2006 11:42:13 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors

 

2005-11-20 14:19:37 org.apache.catalina.core.StandardContext start
服务器: Error filterStart
2005-11-20 14:19:37 org.apache.catalina.core.StandardContext start
服务器: Context startup failed due to previous errors

某些相关的jar和class漏了

只要包或者类齐全就ok了

如果以上方法不行,可以参考第二种解决方案

试着把tomat/server/lib目录下的commons-digester.jar,commons-beanutils.jar拷贝到common/lib/目录

这种方法也许可以帮助解决此问题。


分享到:
评论
6 楼 wangyazhen 2008-06-11  
tomat/server/lib目录下的commons-digester.jar,commons-beanutils.jar拷贝到common/lib/目录

楼主是用tomcat5.0的把,我在tomcat5.5找不到这两个jar,请问要怎么处理
5 楼 wangyazhen 2008-06-11  
好像重新启动服务器就可以,在myecilpse我重新部署一两次后就发生这个错误!!!真的很不理解
4 楼 InnocentBoy 2008-03-10  
如果是一台机器可以,而另外一台机器不行的话,就要注意jdk的版本了,我就遇到了这个问题!
3 楼 funseason 2007-04-09  
我报的错是这个:
2007-4-9 10:13:39 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_08\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin
2007-4-9 10:13:39 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2007-4-9 10:13:39 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1843 ms
2007-4-9 10:13:40 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2007-4-9 10:13:40 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.15
2007-4-9 10:13:40 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2007-4-9 10:13:40 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter Encoding
java.lang.ClassNotFoundException: com.yadooo.web.util.SetCharacterEncodingFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:209)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3598)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4168)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2007-4-9 10:13:40 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter webwork
java.lang.ClassNotFoundException: com.opensymphony.webwork.dispatcher.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:209)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3598)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4168)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2007-4-9 10:13:40 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2007-4-9 10:13:40 org.apache.catalina.core.StandardContext start
严重: Context [] startup failed due to previous errors
2007-4-9 10:13:41 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2007-4-9 10:13:42 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2007-4-9 10:13:42 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/172  config=null
2007-4-9 10:13:42 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2007-4-9 10:13:42 org.apache.catalina.startup.Catalina start
信息: Server startup in 2735 ms
2007-4-9 10:19:19 org.apache.coyote.http11.Http11BaseProtocol pause
信息: Pausing Coyote HTTP/1.1 on http-8080
2007-4-9 10:19:20 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2007-4-9 10:19:20 org.apache.catalina.core.StandardContext stop
信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] has not been started
2007-4-9 10:19:20 org.apache.coyote.http11.Http11BaseProtocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080
2007-4-9 10:19:20 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Failed shutdown of Apache Portable Runtime
怎么办?您有没有联系方式?我的msn:stphen.ccf@hotmail.com
2 楼 jefferson 2007-03-28  
今天部署一个系统的时候出现了错误,原因是做了较大的改动,一个重要的改动是xml的映射的相关代码,而且应用了新的包xerces-2.6.2.jar代替了saxon.jar 和 saxon-jdom.jar对xml的解释。
错误的日志打印如下:
SEVERE: Error reading tld listeners javax.servlet.ServletException: Exception processing TLD at resourc
javax.servlet.ServletException: Exception processing TLD at resource path
at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:549)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:301)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4282)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
等等
紧接着还有一段:
ERROR - Digester.getParser(686) | Digester.getParser:
javax.xml.parsers.ParserConfigurationException: AElfred parser is non-validating
at com.icl.saxon.aelfred.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:34)
at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:139)
at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:73)
at org.apache.commons.digester.Digester.getParser(Digester.java:682)
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:891)
at org.apache.commons.digester.Digester.parse(Digester.java:1572)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:708)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
看第一段,是解释tld出现的问题,第二段,是解释xml出现的问题,那么可以看打印的日志,可以知道,异常抛出的类是com.icl.saxon.aelfred.SAXParserFactoryImpl,找一下这个类,是在包saxon.jar中,因此可以断定的是,是包冲突的问题。
其实,有一定经验的人都可以猜测得到,类似移植系统,或者是加了一些包进去,系统会出错,一般都是包冲突的问题。
那么可以把冲突的包干掉,但有时候,这两个包不是版本的冲突,而是均提供某个类,从来造成冲突的话,那一种办法就是在运行服务器的配置中指定某个类,这是解决办法的一种。
我是这样做的,我用的是tomcat,在它的catalina.properties中设置xml的解释类:
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
      javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
      最后成功了。
1 楼 jackyclein 2007-03-26  
很不错的方式,谢了。按照你的方法解决了问题!

相关推荐

Global site tag (gtag.js) - Google Analytics