This was actually a Tomcat bug that resurfaced again with the Java 9 bytecode. The exact versions which can fix this for both Java 8/9 bytecode are as follows: