java.lang.NoSuchMethodError:org.apache.tomcat.util.ExceptionUtils.unwrapInvocationTargetException

时间:2014-08-28 05:58:32

标签: java apache exception

代码不是由我编写的,所以我无法为问题提供正确的输入;),但仍然想知道异常的原因。 :) 我已经安装了OpenCRX CRM,当我运行时,抛出以下异常,

  

严重:开始事件引发错误   java.lang.NoSuchMethodError:org.apache.tomcat.util.ExceptionUtils.unwrapInvocationTargetException(Ljava / lang / Throwable;)Ljava / lang / Throwable;       在org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:184)       在org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:83)       at org.apache.catalina.connector.Connector.setProtocol(Connector.java:592)       在org.apache.catalina.connector.Connector。(Connector.java:66)       在org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)       在org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1282)       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:507)       at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1323)       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2750)       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)       在com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:828)       在com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:757)       在com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:133)       在com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1211)       at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $ JAXPSAXParser.parse(SAXParserImpl.java:551)       在org.apache.tomcat.util.digester.Digester.parse(Digester.java:1543)       在org.apache.catalina.startup.Catalina.load(Catalina.java:615)       在org.apache.catalina.startup.Catalina.load(Catalina.java:663)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)       在java.lang.reflect.Method.invoke(Method.java:622)       在org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)       在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)   java.lang.NoSuchMethodError:org.apache.tomcat.util.ExceptionUtils.unwrapInvocationTargetException(Ljava / lang / Throwable;)Ljava / lang / Throwable;       在org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:184)       在org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:83)       at org.apache.catalina.connector.Connector.setProtocol(Connector.java:592)       在org.apache.catalina.connector.Connector。(Connector.java:66)       在org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62)       在org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1282)       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:507)       at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1323)       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2750)       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489)       在com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:828)       在com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:757)       在com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:133)       在com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1211)       at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $ JAXPSAXParser.parse(SAXParserImpl.java:551)       在org.apache.tomcat.util.digester.Digester.parse(Digester.java:1543)       在org.apache.catalina.startup.Catalina.load(Catalina.java:615)       在org.apache.catalina.startup.Catalina.load(Catalina.java:663)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)       在java.lang.reflect.Method.invoke(Method.java:622)       在org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)       在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)

我想知道什么时候抛出这样的异常?我应该尝试哪些可能的解决方案? 谢谢:))

2 个答案:

答案 0 :(得分:3)

这可能是因为图书馆冲突。可能会在tomcat lib文件夹中存在旧库或冲突(与app库冲突)库。尝试强制使用app libs

答案 1 :(得分:0)

我只能给出一个提示。就我而言,我已经从Maven属性中的专有名称更改了名称。我有相同的错误和相同的行为。 tomcat能够启动,但是应用程序无法使用Spring Boot进行启动。将标签重命名为旧名称后,该应用程序还能够使用spring boot和tomcat进行引导。