1.server tomcat v7.0 server at localhost failed to start.
严重: a child container failed during start
java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[]]
at java.util.concurrent.futuretask.report(futuretask.java:122)
at java.util.concurrent.futuretask.get(futuretask.java:188)
at org.apache.catalina.core.containerbase.startinternal(containerbase.java:1123)
at org.apache.catalina.core.standardhost.startinternal(standardhost.java:816)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
at org.apache.catalina.core.containerbase startchild.call(containerbase.java:1575)atorg.apache.catalina.core.containerbase startchild.call(containerbase.java:1565)
at java.util.concurrent.futuretask.run(futuretask.java:262)
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:745)
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost].standardcontext[]]
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)
… 6 more
caused by: java.lang.noclassdeffounderror: com/octo/captcha/service/captchaserviceexception
at java.lang.class.getdeclaredfields0(native method)
at java.lang.class.privategetdeclaredfields(class.java:2436)
at java.lang.class.getdeclaredfields(class.java:1806)
at org.apache.catalina.util.introspection.getdeclaredfields(introspection.java:106)
at org.apache.catalina.startup.webannotationset.loadfieldsannotation(webannotationset.java:270)
at org.apache.catalina.startup.webannotationset.loadapplicationservletannotations(webannotationset.java:139)
at org.apache.catalina.startup.webannotationset.loadapplicationannotations(webannotationset.java:65)
at org.apache.catalina.startup.contextconfig.applicationannotationsconfig(contextconfig.java:415)
at org.apache.catalina.startup.contextconfig.configurestart(contextconfig.java:892)
at org.apache.catalina.startup.contextconfig.lifecycleevent(contextconfig.java:386)
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:5380)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
… 6 more
caused by: java.lang.classnotfoundexception: com.octo.captcha.service.captchaserviceexception
at org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1720)
at org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1571)
… 20 more
三月 30, 2017 3:08:02 下午 org.apache.catalina.core.containerbase startinternal
严重: a child container failed during start
java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost]]
at java.util.concurrent.futuretask.report(futuretask.java:122)
at java.util.concurrent.futuretask.get(futuretask.java:188)
at org.apache.catalina.core.containerbase.startinternal(containerbase.java:1123)
at org.apache.catalina.core.standardengine.startinternal(standardengine.java:300)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
at org.apache.catalina.core.standardservice.startinternal(standardservice.java:443)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
at org.apache.catalina.core.standardserver.startinternal(standardserver.java:739)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
at org.apache.catalina.startup.catalina.start(catalina.java:689)
at sun.reflect.nativemethodaccessorimpl.invoke0(native method)
at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)
at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)
at java.lang.reflect.method.invoke(method.java:606)
at org.apache.catalina.startup.bootstrap.start(bootstrap.java:321)
at org.apache.catalina.startup.bootstrap.main(bootstrap.java:455)
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina].standardhost[localhost]]
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)
at org.apache.catalina.core.containerbase startchild.call(containerbase.java:1575)atorg.apache.catalina.core.containerbase startchild.call(containerbase.java:1565)
at java.util.concurrent.futuretask.run(futuretask.java:262)
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:745)
caused by: org.apache.catalina.lifecycleexception: a child container failed during start
at org.apache.catalina.core.containerbase.startinternal(containerbase.java:1131)
at org.apache.catalina.core.standardhost.startinternal(standardhost.java:816)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
… 6 more
三月 30, 2017 3:08:02 下午 org.apache.catalina.startup.catalina start
严重: the required server component failed to start so tomcat is unable to start.
org.apache.catalina.lifecycleexception: failed to start component [standardserver[8005]]
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)
at org.apache.catalina.startup.catalina.start(catalina.java:689)
at sun.reflect.nativemethodaccessorimpl.invoke0(native method)
at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)
at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)
at java.lang.reflect.method.invoke(method.java:606)
at org.apache.catalina.startup.bootstrap.start(bootstrap.java:321)
at org.apache.catalina.startup.bootstrap.main(bootstrap.java:455)
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardservice[catalina]]
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)
at org.apache.catalina.core.standardserver.startinternal(standardserver.java:739)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
… 7 more
caused by: org.apache.catalina.lifecycleexception: failed to start component [standardengine[catalina]]
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)
at org.apache.catalina.core.standardservice.startinternal(standardservice.java:443)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
… 9 more
caused by: org.apache.catalina.lifecycleexception: a child container failed during start
at org.apache.catalina.core.containerbase.startinternal(containerbase.java:1131)
at org.apache.catalina.core.standardengine.startinternal(standardengine.java:300)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
… 11 more
ag真人游戏的解决方案:
查看发布的位置jar有没有发布上去,我的就是maven 依赖jar包没打上去引起的错误
2.严重: exception sending context initialized event to listener instance of class org.springframework.web.context.contextloaderlistener
org.springframework.beans.factory.beancreationexception: error creating bean with name ‘cityserviceimpl’ defined in file [f:\developsource\eclipse\workspacex86_64.metadata.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\sport12\web-inf\classes\cn\itcast\core\service\country\cityserviceimpl.class]: beanpostprocessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.beancreationexception: error creating bean with name ‘org.springframework.aop.aspectj.aspectjpointcutadvisor#1’: instantiation of bean failed; nested exception is org.springframework.beans.beaninstantiationexception: could not instantiate bean class [org.springframework.aop.aspectj.aspectjpointcutadvisor]: constructor threw exception; nested exception is java.lang.nullpointerexception
解决方法:
后面查到是接口的包引错了,
改为
3caused by: java.lang.noclassdeffounderror: org/springframework/web/context/support/servletrequesthandledevent
clean 项目,重新部署
4.server tomcat v7.0 server at localhost was unable to start within 90 seconds. if the server requires more time, try increasing the timeout in the server editor.
1) 修改启动需要的时间
2)将这里面项目都删了,在重新部署
3)检查配置文件路径是不是写错,或者名字写错了