I'm working on a legacy project using a Wildfly 10.x and I faced the same problem... The same exception occurring only in local IDE. The problem was fixed when added the below line on "VM Arguments" in the Wildfly Launch Configuration window (in Eclipse IDE):
-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false