Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Tomcat Startup error report: the solution of Unable to complete the scan for annotations for web application

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "tomcat startup error report: Unable to complete the scan for annotations for web application solution", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "tomcat startup error report: Unable to complete the scan for annotations for web application solution" bar!

Tomcat startup error:

Serious: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine.StandardHost [localhost] .Stan dardContext [/ gbp]] at java.util.concurrent.FutureTask.report (FutureTask.java:122) at java.util.concurrent.FutureTask.get (FutureTask.java:192) 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.run (FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor. Java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617) at java.lang.Thread.run (Thread.java:745) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine.StandardHost [localhost] .StandardContext [/ gbp]] at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:154)... 6 moreCaused by: java.lang.IllegalStateException: Unable to complete the Scan for annotations for web application [/ gbp] due to a StackOverflowError. Possible root causes include a too low setting for-Xss and illegal cyclic inheritance dependencies. The class hierarchy being processed was [org.bouncycastle.asn1.ASN1EncodableVector- > org.bouncycastle.asn1.DEREncodableVector- > org.bouncycastle.asn1.ASN1EncodableVector] at org.apache.catalina.startup.ContextConfig.checkHandlesTypes (ContextConfig.java:2188) at org.apache.catalina.startup.ContextConfig.processAnnotationsStream (ContextConfig.java:2135) at org.apache.catalina.startup.ContextConfig.processAnnotationsJar (ContextConfig.java:2010) at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl (ContextConfig.java : 1976) at org.apache.catalina.startup.ContextConfig.processAnnotations (ContextConfig.java:1961) at org.apache.catalina.startup.ContextConfig.webConfig (ContextConfig.java:1319) 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)... 6 more October 28 2019 9:13:41 org.apache.catalina.core.ContainerBase startInternal serious: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine.StandardHost [localhost]] at java.util.concurrent.FutureTask.report (FutureTask.java:122) at java.util.concurrent.FutureTask.get (FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java: 1123) 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)

The main errors are:

Unable to complete the scan for annotations for web application [/ gbp] due to a StackOverflowError. Possible root causes include a too low setting for-Xss and illegal cyclic inheritance dependencies. The class hierarchy being processed was [org.bouncycastle.asn1.ASN1EncodableVector- > org.bouncycastle.asn1.DEREncodableVector- > org.bouncycastle.asn1.ASN1EncodableVector

After searching on the Internet, many of them said that they modified the configuration file of catalina.properties, but even if the problem was solved, it was not the best way.

The root cause of this problem is a jar package conflict, resulting in a stack overflow. So what should be considered is how to solve the problem of jar dependency.

Start with the class org.bouncycastle.asn1.ASN1Boolean. Check that ASN1Boolean` appears in two packages in the system:

Org.bouncycastlebcprov-jdk16

And

Org.bouncycastlebcprov-jdk15on

So according to the actual situation, just remove one.

Thank you for your reading, the above is the content of "tomcat startup error report: Unable to complete the scan for annotations for web application solution". After the study of this article, I believe you have a deeper understanding of the problem of tomcat startup error report: the solution of Unable to complete the scan for annotations for web application, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report