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.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1EncodableVector]
红色部分为报错的根本原因:是jvm的栈溢出问题;而导致栈溢出的根本原因是由于蓝色部分显示的jar包冲突,这种情况是有两个jar都含有上述相同的类名,且继承关系刚好相反,故造成tomcat启动失败。
解决方案:
搜索出含有上面蓝色部分的类(即ASN1EncodableVector)的jar包,应该有两个jar含有此类,去掉其中一个jar即可。
eclipse通过类名,找到所在的jar包
选中class名, 快捷键 Ctrl + Shit + T!!然后……