gpt4 book ai didi

jsp - 找不到 EL RI 表达式工厂

转载 作者:行者123 更新时间:2023-12-04 16:49:15 25 4
gpt4 key购买 nike

我的应用程序中出现以下异常。

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详细信息.

最佳答案

异常(exception)情况是需要 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 兼容的容器,那么您需要先让我们知道它是哪个,以便我们可以发布更合适的答案/解决方法。

关于jsp - 找不到 EL RI 表达式工厂,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4849691/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com