得到错误..无法解析EL函数$ {class}

时间:2016-08-18 20:36:23

标签: java jsp websphere-liberty

此代码适用于WebSphere 7.0。 在WebSphere 8.5.5.9 Liberty概要文件中,我收到以下错误。

我能够捕获调用JSP类的源代码。

我的JSP不处理此请求。

y <- reshape(x, 
    idvar = id,
  varying = va,
  v.names = vn,
    times = ti,
direction = 'long')

我检查了确切的行号,这就是它的样子。

reshape()

第二个类似的例外。

Application Error (people selection)

SRVE0777E: Exception thrown by application class 'com.ibm.ws.jsp23.translator.visitor.validator.ELValidatorExtImpl.validateElFunction:44' 

com.ibm.ws.jsp.translator.JspTranslationException: JSPG0122E: Unable to parse EL function ${class}.

at com.ibm.ws.jsp23.translator.visitor.validator.ELValidatorExtImpl.validateElFunction(ELValidatorExtImpl.java:44)
at [internal classes]
at com.ibm._jsp._myCalArea._jspx_meth_c_if_4(_myCalArea.java:1440)
at com.ibm._jsp._myCalArea._jspx_meth_c_if_3(_myCalArea.java:1820)
at com.ibm._jsp._myCalArea._jspService(_myCalArea.java:203)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:101)
at [internal classes]
..
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1290)
at [internal classes]

我检查了JSP Java源代码,这是确切的行号。

org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/JSP/myCalAreaPeople.jsp" + "?" + 
org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("defaultenddate", request.getCharacterEncoding()) + "=" + 
org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${defaultenddate}", 
java.lang.String.class, (PageContext)pageContext, _jspx_fnmap, false), request.getCharacterEncoding()), out, true);

然而,这个行号可以正常工作。

Application Error (devices only selection)

SRVE0777E: Exception thrown by application class 'com.ibm.ws.jsp23.translator.visitor.validator.ELValidatorExtImpl.validateElFunction:44' 

com.ibm.ws.jsp.translator.JspTranslationException: JSPG0122E: Unable to parse EL function ${class}.

at com.ibm.ws.jsp23.translator.visitor.validator.ELValidatorExtImpl.validateElFunction(ELValidatorExtImpl.java:44)
at [internal classes]
at com.ibm._jsp._myCalArea._jspx_meth_c_if_9(_myCalArea.java:1739)
at com.ibm._jsp._myCalArea._jspx_meth_c_if_3(_myCalArea.java:1826)
at com.ibm._jsp._myCalArea._jspService(_myCalArea.java:203)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:101)
at [internal classes]
..
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1290)
at [internal classes]

任何想法在上面的错误输出行号中是什么。 有效的行在Java源代码中编译,几乎与失败的源代码相同,因此导致此错误。 我也提到了这个链接。 JSPG0122E: Unable to parse EL function in Websphere 8

http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html?cm_mc_uid=16882298186014694766597&cm_mc_sid_50200000=1471550554#jls-3.9

由于 DJ

0 个答案:

没有答案