我在我的应用程序中收到以下异常. com.sun.faces.config.ConfigurationException: It appears the JSP version of the container is older than 2.1 and unable to locate the EL RI expression factory, com.sun.el.ExpressionFactoryImpl. I
com.sun.faces.config.ConfigurationException:
It appears the JSP version of the
container is older than 2.1 and unable
to locate the EL RI expression
factory,
com.sun.el.ExpressionFactoryImpl. If
not using JSP or the EL RI, make sure
the context initialization parameter,
com.sun.faces.expressionFactory, is
properly set.
如何在web.xml中设置EL详细信息.
例外是告诉JSP 2.1是必需的.您需要确保您的web.xml被声明为Servlet 2.5或更新版本,并且您的servletcontainer支持它(Tomcat 6,Glassfish 2,JBoss AS 5等,或更新版本). JSP 2.1与Servlet 2.5密切相关.一个正确的Servlet 2.5声明web.xml开始如下:<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <!-- Config here. --> </web-app>
如果你使用的是旧的版本化的servletcontainer,你真的不能升级到至少兼容Servlet 2.5的那个,那么你需要先告诉我们它是哪一个,以便我们可以发布更合适的答案/解决方法.