博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
错误处理:java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
阅读量:6842 次
发布时间:2019-06-26

本文共 7403 字,大约阅读时间需要 24 分钟。

部署项目时,启动Tomcat一直出错:java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter

SEVERE: End event threw exceptionjava.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter    at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:855)    at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1063)    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1742)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2900)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)    at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1809)    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1247)    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:873)    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:371)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)    at java.util.concurrent.FutureTask.run(FutureTask.java:166)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at java.lang.Thread.run(Thread.java:722)六月 12, 2014 7:22:06 下午 org.apache.catalina.startup.ContextConfig parseWebXmlSEVERE: Parse error in application web.xml file at jndi:/localhost/carManager/WEB-INF/web.xmlorg.xml.sax.SAXParseException; systemId: jndi:/localhost/carManager/WEB-INF/web.xml; lineNumber: 33; columnNumber: 11; Error at (33, 11) : org.apache.catalina.deploy.WebXml addFilter    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2711)    at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2743)    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1066)    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:606)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1742)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2900)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)    at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1809)    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1247)    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:873)    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:371)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)    at java.util.concurrent.FutureTask.run(FutureTask.java:166)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)    at java.lang.Thread.run(Thread.java:722)Caused by: java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter    at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:855)    at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201)    at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1063)    ... 30 more六月 12, 2014 7:22:06 下午 org.apache.catalina.startup.ContextConfig parseWebXmlSEVERE: Occurred at line 33 column 11六月 12, 2014 7:22:06 下午 org.apache.catalina.startup.ContextConfig configureStartSEVERE: Marking this application unavailable due to previous error(s)六月 12, 2014 7:22:06 下午 org.apache.catalina.core.StandardContext startInternalSEVERE: Error getConfigured六月 12, 2014 7:22:06 下午 org.apache.catalina.core.StandardContext startInternalSEVERE: Context [/carManager] startup failed due to previous errors

解决的方法:

在tomacat的配置文件context.xml里加上<Loader delegate="true"/>

转载地址:http://cbzul.baihongyu.com/

你可能感兴趣的文章
Python 操作 memcached
查看>>
ie9兼容模式下可用,js导出table到excel
查看>>
python机器学习及实践学习笔记1-如何打开ipynb后缀文件
查看>>
Centos内核升级的三种方法
查看>>
http状态码
查看>>
Mysql truncate 回滚
查看>>
spilt函数 详解 for Python
查看>>
数据库连接超时问题
查看>>
十大ACE/ACED专家齐聚一堂,一场不容错过的数据技术盛会
查看>>
JavaWeb-HTTPServletReauest和HTTPServletResponse
查看>>
JAVA I/O输入输出流
查看>>
生产者消费者
查看>>
phpMyAdmin 4.8.x(最新版) 本地文件包含漏洞利用
查看>>
如何编写一个可升级的智能合约
查看>>
RAC中的链式调用和函数式编程
查看>>
jvm总结
查看>>
如何使用Kubernetes里的NetworkPolicy
查看>>
springboot部署
查看>>
python 笔记 之 函数初识
查看>>
正则介绍_grep
查看>>