tomcat启动报错,具体报错信息如下:
Unable to complete the scan for annotations for web application [/Ftrans] 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.jaxen.util.AncestorAxisIterator->org.jaxen.util.AncestorOrSelfAxisIterator->org.jaxen.util.AncestorAxisIterator]
---------------------
作者:两只小乌龟
来源:CSDN
原文:https://blog.csdn.net/lucky870315/article/details/56667903
版权声明:本文为博主原创文章,转载请附上博文链接!
一、忽略tomcat启动时扫描jar包
tomcat8.0
打开在tomcat的conf目录里面catalina.properties的文件,
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\
改为
tomcat.util.scan.DefaultJarScanner.jarsToSkip=\,*
tomcat8.5:
打开在tomcat的conf目录里面catalina.properties的文件,
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\
改为
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=\,*
二、更新jar包
更好的解决方案是更新jar包,更新Jaxen-1.1.6和dom4j-1.6.1两个jar包