我的应用程序几天前运行良好,但是当我今天执行它时,出现以下错误:

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ContestiOpenDataJungle]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) ~[catalina.jar:7.0.55]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [catalina.jar:7.0.55]
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [catalina.jar:7.0.55]
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) [catalina.jar:7.0.55]
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083) [catalina.jar:7.0.55]
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880) [catalina.jar:7.0.55]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_25]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25]
Caused by: java.lang.NoClassDefFoundError: org/apache/tomcat/util/descriptor/tld/TldParser
    at org.apache.jasper.servlet.TldScanner.<init>(TldScanner.java:86) ~[na:na]
    at org.apache.jasper.servlet.JasperInitializer.newTldScanner(JasperInitializer.java:120) ~[na:na]
    at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:101) ~[na:na]
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5479) ~[catalina.jar:7.0.55]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[catalina.jar:7.0.55]
    ... 10 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.util.descriptor.tld.TldParser
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) ~[catalina.jar:7.0.55]
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) ~[catalina.jar:7.0.55]
    ... 15 common frames omitted
2015-07-24 19:36:41,289 | ERROR | Error deploying web application archive C:\Users\Rosario\Desktop\platform-community-4.1.0\webapps\ContestiOpenDataJungle.war [org.apache.catalina.startup.HostConfig<localhost-startStop-2>]
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ContestiOpenDataJungle]]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904) ~[catalina.jar:7.0.55]
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) ~[catalina.jar:7.0.55]
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) ~[catalina.jar:7.0.55]
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083) ~[catalina.jar:7.0.55]
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880) [catalina.jar:7.0.55]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_25]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_25]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_25]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25]


我尝试过更改tomcat,但是它没有更改,现在我不知道错误是什么。

最佳答案

编辑您的pom文件,并将此类org / apache / tomcat / util / descriptor / tld / TldParser的jar文件添加到pom文件中。
查看此链接:add TldParser to pom file

09-25 22:25