欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

java.util.concurrent.ExecutionException 问题解决方法

程序员文章站 2024-03-12 13:57:14
java.util.concurrent.executionexception错误信息,这里给出解决方案,大家根据具体要求更改。 severe: a child...

java.util.concurrent.executionexception错误信息,这里给出解决方案,大家根据具体要求更改。

severe: a child container failed during start
java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[/webapp]]
  at java.util.concurrent.futuretask$sync.innerget(futuretask.java:222)
  at java.util.concurrent.futuretask.get(futuretask.java:83)
  at org.apache.catalina.core.containerbase.startinternal(containerbase.java:1123)
  at org.apache.catalina.core.standardhost.startinternal(standardhost.java:800)
  at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
  at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559)
  at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549)
  at java.util.concurrent.futuretask$sync.innerrun(futuretask.java:303)
  at java.util.concurrent.futuretask.run(futuretask.java:138)
  at java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:886)
  at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:908)
  at java.lang.thread.run(thread.java:619)
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[/webapp]]
  at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)
  ... 7 more
caused by: java.lang.runtimeexception: unexpected element value kind in annotation: 0
  at org.apache.tomcat.util.bcel.classfile.elementvalue.readelementvalue(elementvalue.java:129)
  at org.apache.tomcat.util.bcel.classfile.annotationentry.read(annotationentry.java:59)
  at org.apache.tomcat.util.bcel.classfile.annotations.<init>(annotations.java:49)
  at org.apache.tomcat.util.bcel.classfile.runtimevisibleannotations.<init>(runtimevisibleannotations.java:51)
  at org.apache.tomcat.util.bcel.classfile.attribute.readattribute(attribute.java:147)
  at org.apache.tomcat.util.bcel.classfile.fieldormethod.<init>(fieldormethod.java:58)
  at org.apache.tomcat.util.bcel.classfile.method.<init>(method.java:72)
  at org.apache.tomcat.util.bcel.classfile.classparser.readmethods(classparser.java:268)
  at org.apache.tomcat.util.bcel.classfile.classparser.parse(classparser.java:128)
  at org.apache.catalina.startup.contextconfig.processannotationsstream(contextconfig.java:2118)
  at org.apache.catalina.startup.contextconfig.processannotationsfile(contextconfig.java:2093)
  at org.apache.catalina.startup.contextconfig.processannotationsfile(contextconfig.java:2086)
  at org.apache.catalina.startup.contextconfig.processannotationsfile(contextconfig.java:2086)
  at org.apache.catalina.startup.contextconfig.processannotationsfile(contextconfig.java:2086)
  at org.apache.catalina.startup.contextconfig.processannotationsfile(contextconfig.java:2086)
  at org.apache.catalina.startup.contextconfig.processannotationsfile(contextconfig.java:2086)
  at org.apache.catalina.startup.contextconfig.processannotationsfile(contextconfig.java:2086)
  at org.apache.catalina.startup.contextconfig.webconfig(contextconfig.java:1293)
  at org.apache.catalina.startup.contextconfig.configurestart(contextconfig.java:878)
  at org.apache.catalina.startup.contextconfig.lifecycleevent(contextconfig.java:376)
  at org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:119)
  at org.apache.catalina.util.lifecyclebase.firelifecycleevent(lifecyclebase.java:90)
  at org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5322)
  at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
  ... 7 more
may 26, 2014 6:19:09 pm org.apache.catalina.core.containerbase startinternal

今天运行eclipse 运行tomcat启动不了,不知道啥情况,通过调查发现是因为springmvc中controller类有一个url报错了

解决问题方法:

1.web.xml出现了问题

检查<url-pattern></url-pattern>中配置的内容是否缺少“/” ,"/"表示当前web应用。

@webfilter("/*")

2.如果是springmvc检查controller类中@requestmapping(value =是否有报错的情况

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!