WLS 12.1.3 with JDK 8: Error Compiling JSP (Doc ID 1966009.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

Facing the JSP CompilationException when using WLS 12.1.3 with JDK 8.

weblogic.servlet.jsp.CompilationException: Failed to compile JSP /index.jsp
index.jsp:3:44: The type new Comparator(){} must implement the inherited abstract method Comparator.thenComparing(Function, Comparator)
index.jsp:3:44: The type new Comparator(){} must implement the inherited abstract method Comparator.thenComparing(Function)

...

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms