Tomcat app org.apache.catalina.LifecycleException:Failed to stop component [Standardengine[catalina]. Standardhost[localhost]. Standardcontext[]] The root cause of the exception

Source: Internet
Author: User

In the morning, there is an application and hang up, the client opened the Times 404, to see the process is still there. To return to the first exception, the following information is visible in the Catalina.out:

08:46:56.646 [Containerbackgroundprocessor[standardengine[catalina]] DEBUG o.s.b.f.s.disposablebeanadapter- invoking destroy () on bean with name ' Org.springframework.scheduling.config.ContextLifecycleSchedul
Edtaskregistrar#0 '
08:46:56.647 [Containerbackgroundprocessor[standardengine[catalina]] DEBUG o.s.b.f.s.defaultlistablebeanfactory- Retrieved dependent beans for bean ' (inner Bean) #293beccc ': [org.springframework.aop.aspectj.a
SPECTJPOINTCUTADVISOR#1]
08:46:56.647 [Containerbackgroundprocessor[standardengine[catalina]] DEBUG o.s.b.f.s.defaultlistablebeanfactory- Retrieved dependent beans for bean ' (inner Bean) #debcf58 ': [(inner bean) #293beccc]
08:46:56.647 [Containerbackgroundprocessor[standardengine[catalina]] DEBUG o.s.b.f.s.defaultlistablebeanfactory- Retrieved dependent beans for bean ' (inner Bean) #430751d4 ': [org.springframework.aop.aspectj.a
SPECTJPOINTCUTADVISOR#0]
08:46:56.647 [Containerbackgroundprocessor[standardengine[catalina]] DEBUG o.s.b.f.s.defaultlistablebeanfactory- Retrieved dependent beans for bean ' (inner Bean) #429fcab3 ': [(inner bean) #430751d4]
Feb, 8:46:56 AM org.apache.catalina.core.StandardContext Reload
Severe:exception stopping Context with name []
org.apache.catalina.LifecycleException:Failed to stop component [Standardengine[catalina]. Standardhost[localhost]. Standardcontext[]]
At Org.apache.catalina.util.LifecycleBase.stop (lifecyclebase.java:236)
At Org.apache.catalina.core.StandardContext.reload (standardcontext.java:4090)
At Org.apache.catalina.loader.WebappLoader.backgroundProcess (webapploader.java:425)
At Org.apache.catalina.core.ContainerBase.backgroundProcess (containerbase.java:1344)
At Org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren (ContainerBase.java:1545)
At Org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren (ContainerBase.java:1555)
At Org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren (ContainerBase.java:1555)
At Org.apache.catalina.core.containerbase$containerbackgroundprocessor.run (containerbase.java:1523)
At Java.lang.Thread.run (thread.java:745)
caused by:org.apache.catalina.LifecycleException:Failed to stop component [webapploader[]]
At Org.apache.catalina.util.LifecycleBase.stop (lifecyclebase.java:236)
At Org.apache.catalina.core.StandardContext.stopInternal (standardcontext.java:5829)
At Org.apache.catalina.util.LifecycleBase.stop (lifecyclebase.java:232)
... 8 more
caused by:java.lang.NullPointerException
At Org.apache.catalina.loader.WebappClassLoaderBase.findResourceInternal (webappclassloaderbase.java:3308)
At Org.apache.catalina.loader.WebappClassLoaderBase.findResource (webappclassloaderbase.java:1428)
At Org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream (webappclassloaderbase.java:1656)
At Org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc (webappclassloaderbase.java:2223)
At Org.apache.catalina.loader.WebappClassLoaderBase.clearReferences (webappclassloaderbase.java:2166)
At Org.apache.catalina.loader.WebappClassLoaderBase.stop (webappclassloaderbase.java:2066)
At Org.apache.catalina.loader.WebappLoader.stopInternal (webapploader.java:661)
At Org.apache.catalina.util.LifecycleBase.stop (lifecyclebase.java:232)
... Ten more

Feb, 8:46:56 AM org.apache.catalina.util.LifecycleBase stop
Info:the Stop () method was called on component [[E-mail protected]] after stop () had already been called. The second call would be ignored.
Feb, 8:46:56 AM org.apache.catalina.core.StandardContext Reload

This compares to the pit daddy is, does not seem to have a property in Server.xml set if one webapp hangs, Tomcat exits directly. Otherwise, a container-managed operation, such as a socket connection, will make the application log look normal at last, but it's actually dead.

Here actually do not see why the application hangs, step back to check (see log level of severe), found the following error:

Severe:resource '/web-inf/lib/slf4j-api-1.7.10.jar ' is missing
Feb, 8:46:56 AM org.apache.catalina.core.StandardContext Reload
Info:reloading Context with name [] have started

Look at the app, the version of 1.7.12 is there.

The suspicion is that the reloadable of the <Context> node is set to "true", and the value is indeed true and should be caused by version inconsistency during automatic loading.

Tomcat app org.apache.catalina.LifecycleException:Failed to stop component [Standardengine[catalina]. Standardhost[localhost]. Standardcontext[]] The root cause of the exception

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.