I think I'm looking at a Tomcat configuration issue with my current problem. I'm developing a Java Servlet and JSP application for Tomcat 8.5.8, and have begun to use Java 8 language features (specifically method references and streams). On my local machine running jdk1.8.0_211 the new code works, compiling JSP at runtime as it is meant to do.
On our testing server (RH Linux) the new JSP fails to compile (but the rest of the app works). The error is
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 135 in the jsp file: /jsp/directory/page.jsp
Method references are allowed only at source level 1.8 or above
I didn't set up the server myself, but it runs some build of Java 8, and has the same Tomcat version (8.5.8), so I suspect there's a configuration file somewhere that's telling it to compile the JSP at an older language level. (The evidence is that it knows what a Method reference is but refuses to compile it; an exception rather than an error.)
Where might a configuration be hiding that tells Tomcat to compile JSP at an older language level?