如何解决启动应用程序失败:无法定位 EL RI 表达式工厂
我在启动应用程序时遇到以下异常:
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,但没有区别。
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
web.xml 的标题如下所示:
<web-app version="3.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
metadata-complete="true"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" >
Jetty 版本是 10.0.2,Apache EL 9.0.29 通过 Apache-JSP 9.0.29。我看到了类似的问题 Unable to locate the EL RI expression factory,但这可能已经过时了。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。