The call to foo.class.name in JSP is deprecated and crashes in modern servers with the error message
The identifier [class] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.zkoss.zel.impl.parser.SKIP_IDENTIFIER_CHECK to true.
A proper replacement is foo['class'].name
See also https://www.logicbig.com/how-to/jsp/jsp-not-valid-java-identifier-exception.html