Could not find expression EL RI factory

I get the following exception in my application.

com.sun.faces.config.ConfigurationException: It looks like the JSP version of the container is older than 2.1 and cannot detect EL RI factory, com.sun.el.ExpressionFactoryImpl. If not using JSP or EL RI, make sure that the context initialization parameter, com.sun.faces.expressionFactory, is correctly set.

How to set EL data in web.xml.

+5
source share
4 answers

, JSP 2.1. , web.xml Servlet 2.5 , servletcontainer (Tomcat 6, Glassfish 2, JBoss AS 5 .. ). JSP 2.1 Servlet 2.5. 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, , , , , / .

+8

, el jar classpath. .

() . JSF 2.0 + Tomcat: , JSP 2.1...

+4

Add the following to Web.xml: this worked for me.

<context-param>
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
+1
source

you can try to remove the following in web.xml, this worked for me.

<context-param>
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
+1
source

All Articles