7 Replies Latest reply on Jan 17, 2011 9:21 AM by ram ram

    richfaces 3.3.3 with Websphere 7.0 issue

    ram ram Newbie

      Hi All,


      I am having this exception when using richfaces 3.3.3 on Websphere. The application runs well under JBOSS and TOMCAT.


      Error 500: javax.el.ELException: Function 'rich:element' not found.

          since i am using also "<rich:hotKey key="return" handler="#{rich:element('hideLangPanellId')}.click()" />"


      I tryed to put the el-api.jar in the class path I had this exception

          Class 'org.richfaces.component.ClonedObjectResolver' is not an instance of 'class javax.el.ELResolver'


      If I added the jsf-impl.jar + jsf-api.jar + el-api.jar another exception appears

          java.lang.VerifyError: javax/servlet/jsp/JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V


      What do u think??? how can this be fixed ???

      What is the jars that must be places and compatible with WAS 7.0 jars that will make the application function normally as it does on the JBOSS and TOMCAT?




        • 1. richfaces 3.3.3 with Websphere 7.0 issue
          Nick Belaevski Master

          Hi Ram,


          Are you using JSP or Facelets?

          • 2. richfaces 3.3.3 with Websphere 7.0 issue
            ram ram Newbie

            Hi Nick,


            I am working with Facelets JSF. This is an example on the header page that I have.


            <%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
            <%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
            <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
            <%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>


            in addition to this I use the Richfaces 3.3.3 and I checked that the Websphere server is refencing the JSF 1.2 with it.

            Would using a JSP cause such problem? or would using a Facelet cause this problem?

            And what do you recommend as a solution for this?


            Thanks for your help,


            • 3. richfaces 3.3.3 with Websphere 7.0 issue
              Ilya Sorokoumov Master

              1) It looks like you are using JSP. Facelets pages have the following header:

              <ui:composition xmlns="http://www.w3.org/1999/xhtml"






              So may be you can try Facelets(But in this case use should modify all your pages accordingly to Facelets style)

              You can take a look at this for some details about facelets:


              2) I can't find enough information about Sun JSF impl + WebSpehere. But it seems that it's not possible to change JSF impl in this app server.

              P.S. Can you post this question on some WebSphere forums?(I guess that guys who are using WebSphere a lot could tell you much more)

              • 4. Re: richfaces 3.3.3 with Websphere 7.0 issue
                ram ram Newbie

                Hi All,


                   Yes you are right I am using JSP not Facelets.


                   However, I did the update that you have recommended Nick and I did the update to WebSphere Platform [BASE cf131039.07]  and I have the below exception please check below the full stack trace:


                [1/14/11 12:24:59:631 EET] 00000019 servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /jsp/common/MainMenu.jsp in application ipmSuite_war. Exception created : javax.el.ELException: Function 'rich:element' not found

                          at org.apache.el.lang.ExpressionBuilder.visit(ExpressionBuilder.java:175)

                          at org.apache.el.parser.SimpleNode.accept(SimpleNode.java:129)

                          at org.apache.el.parser.SimpleNode.accept(SimpleNode.java:132)

                          at org.apache.el.parser.SimpleNode.accept(SimpleNode.java:132)

                          at org.apache.el.lang.ExpressionBuilder.prepare(ExpressionBuilder.java:137)

                          at org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:151)

                          at org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:194)

                          at org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:67)

                          at com.ibm._jsp._MainMenu._jspx_meth_h_graphicImage_0(_MainMenu.java:478)

                          at com.ibm._jsp._MainMenu._jspx_meth_h_panelGroup_0(_MainMenu.java:514)

                          at com.ibm._jsp._MainMenu._jspx_meth_f_facet_1(_MainMenu.java:549)

                          at com.ibm._jsp._MainMenu._jspx_meth_rich_modalPanel_0(_MainMenu.java:7306)

                          at com.ibm._jsp._MainMenu._jspx_meth_f_view_0(_MainMenu.java:7717)

                          at com.ibm._jsp._MainMenu._jspService(_MainMenu.java:200)

                          at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)

                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)

                          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)

                          at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)

                          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)

                          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)

                          at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:99)

                          at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)

                          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

                          at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)

                          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)

                          at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:60)

                          at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)







                • 5. Re: richfaces 3.3.3 with Websphere 7.0 issue
                  ram ram Newbie

                  any ideas how to fix this issue?

                  • 6. Re: richfaces 3.3.3 with Websphere 7.0 issue
                    Nick Belaevski Master

                    Have you tried contacting WebSphere support via forum/another channel? Also try checking application startup log - maybe there is some additional information there?

                    • 7. Re: richfaces 3.3.3 with Websphere 7.0 issue
                      ram ram Newbie

                      Hi Nick,


                         As i was checking the following URL: https://issues.jboss.org/browse/RF-8259 I realized that there was a similar bug on the JBOSS server and it was corrected.


                      Is this a similar issue? and what was done to fix it?