Caused by: java.lang.IllegalStateException: Unable to complete the scan for annotations for web application [/cmp-model] 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 最后一行添加以下代码,搞定!
tomcat.util.scan.StandardJarScanFilter.jarsToSkip = bcpkix-*.jar,bcprov-*.jar,fr-*.jar
博客指出Java应用在扫描注解时出现StackOverflowError异常,可能原因是 -Xss 设置过低或存在非法循环继承依赖,给出了类层次处理情况。还提到在tomcat/conf/catalina.properties最后一行添加代码可解决该问题。
1830

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



