我正在使用tomcat 7.0.82和JDK - " 1.7.0_80"。当我将jar com.ibm.ws.ejb.thinclient_7.0.0.jar复制到tomcat / lib目录时,我收到错误。你知道这个错误的原因吗?
SEVERE: Exception initializing page context
java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
at org.apache.jasper.runtime.JspApplicationContextImpl.<init>(JspApplicationContextImpl.java:46)
at org.apache.jasper.runtime.JspApplicationContextImpl.getInstance(JspApplicationContextImpl.java:76)
at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:143)
at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:126)
at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:111)
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:64)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:72)
答案 0 :(得分:0)
方法javax.el.ExpressionFactory.newInstance()已添加到2.2版本的表达式语言api库中。
您必须检查部署在tomcat / lib中的版本是否具有版本2.2的el-api.jar,并检查您是否在WEB-INF /中的项目中使用了不同版本的jar lib文件夹