Unable to locate the EL RI expression factory

前端 未结 4 1811
情书的邮戳
情书的邮戳 2021-01-05 22:43

I am getting the following exception in my application.

com.sun.faces.config.ConfigurationException: It appears the JSP version of the container i

相关标签:
4条回答
  • 2021-01-05 22:54

    you can try to remove following in Web.xml , it worked for me.

    <context-param>
        <param-name>com.sun.faces.expressionFactory</param-name>
        <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
    </context-param>
    
    0 讨论(0)
  • 2021-01-05 23:04

    Add the following to the Web.xml, it worked for me.

    <context-param>
        <param-name>com.sun.faces.expressionFactory</param-name>
        <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
    </context-param>
    
    0 讨论(0)
  • 2021-01-05 23:07

    The exception is telling that JSP 2.1 is required. You need to ensure that your web.xml is declared as Servlet 2.5 or newer, and that your servletcontainer supports it (Tomcat 6, Glassfish 2, JBoss AS 5, etc, or newer). JSP 2.1 goes hand in hand with Servlet 2.5. A proper Servlet 2.5 declared web.xml starts as follows:

    <?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>
    

    If you're using an older versioned servletcontainer which you can really not upgrade to at least a Servlet 2.5 compatible one, then you need to let us know first which one it is so that we can if possibly post more suited answers/workarounds.

    0 讨论(0)
  • 2021-01-05 23:16

    This is because latest el jar is not in classpath. It worked for me too

    (Reference)Please refer the link JSF 2.0 + Tomcat : It appears the JSP version of the container is older than 2.1…

    0 讨论(0)
提交回复
热议问题