Errors while parsing Jsp containing Unified EL (Doc ID 1354369.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 10.0 to 10.3.5
Information in this document applies to any platform.

Symptoms

With weblogic server 10.0 and above the error is thrown while parsing the JSP containing Unified EL.

following error is thrown in the weblogic server logs :



weblogic.servlet.jsp.CompilationException: Failed to compile JSP /inici.jsp
inici.jsp:12:49: Syntax error in expression. Encountered ":false". Expected
one
of : ".", "[", ":", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==",
"eq", "!
=", "ne", "&&", "and", "||", "or", "*", "+", "-", "/", "div", "%", "mod",
<c:out value="Operador Ternario ${'1'=='1'?true:false}"/>
^---^
at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessa
ry(JavelinxJSPStub.java:226)
at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java
:162)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:243)


In the browser you will see below exception :


Failed to compile JSP /inici.jsp
@ inici.jsp:12:49: Syntax error in expression. Encountered ":false". Expected
@ one
@ of : ".", "[", ":", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==",
@ "eq", "!
@ =", "ne", "&&", "and", "||", "or", "*", "+", "-", "/", "div", "%", "mod",
@ <c:out value="Operador Ternario ${'1'=='1'?true:false}"/>

Changes

Upgrading WebLogic Server from 9.2.3 to 10.0 and above.


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