JSP Servlet Configuration (Tomcat 7)

If you are using Tomcat 7, then the upgrade to Java 8 requires the addition of two parameters to the JSP servlet configuration in your Tomcat web.xml file (tomcat-home/conf/web.xml). The following extract shows the two new parameters highlighted:

...
<servlet>
  <servlet-name>jsp</servlet-name>
  <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
  <init-param>
    <param-name>fork</param-name>
    <param-value>false</param-value>
  </init-param>
  <init-param>
    <param-name>xpoweredBy</param-name>
    <param-value>false</param-value>
  </init-param>
  <load-on-startup>3</load-on-startup>
  <init-param>
    <param-name>compilerSourceVM</param-name>
    <param-value>1.8</param-value></init-param>
  <init-param>
    <param-name>compilerTargetVM</param-name>
    <param-value>1.8</param-value>
  </init-param>
</servlet>
...