tomcat启动报错 java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException
Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [] 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.ASN1Boolean->org.bouncycastle.asn1.DERBoolean->org.bouncycastle.asn1.ASN1Boolean
最近项目经常启动报错,tomcat生命周期类报错,重新启动两遍就又好了,很是郁闷。
刚开始搜索第一行报错ContainerBase.addChild: start: org.apache.catalina.LifecycleException ,搜到的全是web.xml配置错误,检查了自己的项目很多遍,web.xml没有问题。
沿着报错信息往下看,org.bouncycastle.asn1.ASN1Boolean,这个报错很重要,查了查原来是jar包重复了,org.bouncycastle.jar,检查一下lib或pom,删除掉jar包之后果然没再报错,项目启动很顺畅。
完美解决。