I currently have a web project with JSF 1.2 and Facelets running in tomcat 6.0.18.0. I decided to update the servlet container, so I deployed to tomcat 7, and everything seemed fine until we hit one by one using my custome facelet functions.
javax.el.ELException: Failed to parse the expression [{pz:instanceof(object,'com.project.domain.MyClass')}]
Caused by: org.apache.el.parser.ParseException: Encountered " ":" ": "" at line 1, column 5. Was expecting one of: "}" ... "." ... "[" ...
This error occurs when parsing the code:
<ui:repeat var="object" value="#{objects}"> <ui:fragment rendered="#{pz:instanceof(object,'com.project.domain.MyClass')}"> ...
If I understand correctly, this causes an error due to the colon in the expression. I tracked it down to jasper-el, which is in the tomcat / lib directory, and if I replaced jasper.jar and jasper-el.jar with the ones from tomcat 6.0.18, everything works fine.
Has anyone else had this problem before updating their tomcat? And how did they resolve this? Can I deploy tomcat 7 in production using jomper jar from tomcat 6, or can this cause additional problems.
Garytxo
source share