The main cause of cited error is any problem with implementation of ExpressionFactory. Faces 1.1 used the Application class as a factory for ValueBindingand and MethodBinding instances, but the Unified EL in JSF 1.2 and 2.* has the ExpressionFactory class instead as a factory for ValueExpression and MethodExpression instances.
The problem with ExpressionFactory denotes that Faces layer wasn't properly initialized. To resolve this error in the first check, if /WEB-INF/faces-config.xml configuration file is present and valid.
Additionaly in Faces 2.* and Tomcat 6.0 you should perform additional steps:
- Download and put el-api2.* and el-impl2.* jar files in $TOMCAT_HOME/lib directory
- Register EL Factory in web.xml deployment descriptor:
<context-param> <param-name>com.sun.faces.expressionFactory</param-name> <param-value>com.sun.el.ExpressionFactoryImpl</param-value> </context-param>
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete