I am upgrading from Tomcat 7.0.x to 8.5.5
I receive many exceptions related to annotation scanning like so:
Caused by: java.lang.IllegalStateException: Unable to complete the scan for
annotations for web application [/something] 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
I am not able to modify the dependency chain leading me to this, so I
googled up a couple of possible fixes that didn't work for me:
1. Attempted to disable jar scanning with a <JarScanner> tag with "false"
to all scan types in conf/context.xml:
<JarScanner scanAllDirectories="false" scanAllFiles="false"
scanClassPath="false" scanBootstrapClassPath="false" />
2. Added all of the jars associated with org.jaxen.util to
These jars were jaxen and xom, which were already excluded from scan by the
Does anyone have a suggestion of what I might try?