java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/xxx]
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/conf/catalina.properties文件中,添加如下所示:
org.apache.catalina.startup.ContextConfig.jarsToSkip=bcprov*.jar
重启启动Tomcat成功
本文介绍了解决Tomcat启动时出现StackOverflowError的具体步骤。该错误与非法的循环继承依赖有关,通过在conf/catalina.properties文件中排除特定的bcprov*.jar库解决了问题。
5万+

被折叠的 条评论
为什么被折叠?



