This error has been depressing for a long time. At the beginning, I went online and found a lot of problems. I thought it was because I was using the latest version of Tomcat, after reading the xml configuration, we can see that the servlet URL-pattern configuration is less than "/". After adding the servlet, the configuration starts successfully!
June 24 5:41:23 org. Apache. Catalina. Core. containerbase startinternal
Severe: 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 $ sync. innerget (unknown source)
At java. util. Concurrent. futuretask. Get (unknown source)
At org. Apache. Catalina. Core. containerbase. startinternal (containerbase. Java: 1142)
At org. Apache. Catalina. Core. standardengine. startinternal (standardengine. Java: 302)
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: 732)
At org. Apache. Catalina. util. lifecyclebase. Start (lifecyclebase. Java: 150)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 675)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (unknown source)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (unknown source)
At java. Lang. Reflect. method. Invoke (unknown source)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 322)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 451)
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: 1595)
At org. Apache. Catalina. Core. containerbase $ startchild. Call (containerbase. Java: 1585)
At java. util. Concurrent. futuretask $ sync. innerrun (unknown source)
At java. util. Concurrent. futuretask. Run (unknown source)
At java. util. Concurrent. threadpoolexecutor. runworker (unknown source)
At java. util. Concurrent. threadpoolexecutor $ worker. Run (unknown source)
At java. Lang. thread. Run (unknown source)
Caused by: org. Apache. Catalina. lifecycleexception: A child container failed during start
At org. Apache. Catalina. Core. containerbase. startinternal (containerbase. Java: 1150)
At org. Apache. Catalina. Core. standardhost. startinternal (standardhost. Java: 785)
At org. Apache. Catalina. util. lifecyclebase. Start (lifecyclebase. Java: 150)
... 7 more
June 24 5:41:23 org. Apache. Catalina. startup. Catalina start
Severe: Catalina. 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: 675)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (unknown source)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (unknown source)
At java. Lang. Reflect. method. Invoke (unknown source)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 322)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 451)
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: 732)
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: 1150)
At org. Apache. Catalina. Core. standardengine. startinternal (standardengine. Java: 302)
At org. Apache. Catalina. util. lifecyclebase. Start (lifecyclebase. Java: 150)
... 11 more
June 24 5:41:23 org. Apache. Catalina. startup. Catalina start
Information: server startup in 1157 MS