Using JBoss EL on Weblogic 11g (10.3.1.0)
- by golfradio
Hi,
I have a facelets 1.2 application that I am running on Weblogic 11g. I want to use the JBoss EL implementation that allows me to call bean methods with arguments. For this, I have packaged the jboss-el-2.0.1.GA.jar in my WAR's WEB-INF/lib directory. I have also added a context-param in my web.xml to override the Sun implementation.
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
</context-param>
But when I load a page that contains an expression like
<ice:outputText value="#{errBean.getErrMsg(error.code)}"/>
I get an expression parsing exception
java.lang.Exception: javax.faces.FacesException: com.sun.el.parser.ParseException: Encountered "(" at line 1, column 25.
Was expecting one of:
"}" ...
"." ...
...
at com.sun.el.parser.ELParser.generateParseException(ELParser.java:1651)
at com.sun.el.parser.ELParser.jj_consume_token(ELParser.java:1531)
at com.sun.el.parser.ELParser.DeferredExpression(ELParser.java:134)
at com.sun.el.parser.ELParser.CompositeExpression(ELParser.java:61)
at com.sun.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:128)
at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:177)
at com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:221)
at com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:81)
at com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:256)
Weblogic does not seem to be using the JBoss EL ExpressionFactoryImpl. I don't understand what is going on. This worked on Weblogic 9.2.2. What is it that I am doing wrong?
Any help is appreciated. Thanks in advance.