11 Replies Latest reply on Apr 30, 2008 11:10 AM by Sergey Smirnov

    Please Help! Setup richfaces!

    Armen Arzumanyan Newbie

      Hello, Dear friends I am a beginner and I develop simple application and try to use richfaces but unlucky. I added richfaces jar files in web-inf/lib and also added

      <context-param>
       <param-name>org.richfaces.SKIN</param-name>
       <param-value>blueSky</param-value>
       </context-param>
       <filter>
       <display-name>RichFaces Filter</display-name>
       <filter-name>richfaces</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
       </filter>
       <filter-mapping>
       <filter-name>richfaces</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
       </filter-mapping>
      


      to web.xml, but could not start application - 500 error.

      Could you please give me simple example with all needed jar files for lib including JSF, facelets and right web.xml configuration. I need a simple working application.

      Thanks a lot.




        • 2. Re: Please Help! Setup richfaces!
          Ilya Shaikovsky Master

          provide exceptions from server log.

          B.t.w. it'll be simple to build one of our samples using info in wiki.

          • 3. Re: Please Help! Setup richfaces!
            Armen Arzumanyan Newbie

            Please provide me about all lib for JFS-Facelets-Richfaces what I need on my web-inf/lib directory, I think I have a conflict between libraries.
            pls provide facelets version what working with richfaces version, and JSF version. Thanks.



            • 4. Re: Please Help! Setup richfaces!
              Ilya Shaikovsky Master

              All supported JSF/facelets/myfaces etc.. versions listed in our dev guide.

              Also as we mentioned in our guide - nothing additional should be done to add richfaces to working JSF app except 3 jars and filter definition.
              Did you JSF sample worked at all before you added RF? If so - paste the exception please.

              • 5. Re: Please Help! Setup richfaces!
                Armen Arzumanyan Newbie

                Thank you for answers. I decided that all problem connected with web server.
                I used Tomcat 6, when I change the server to Glasshfish all problems are fixed. But I need jdk5/JSF/Facelets/Tomcat6. Is it possible all this done under tomcat with jdk 5? And what kind of IDE you can advice me for all this?

                Thanks.

                • 6. Re: Please Help! Setup richfaces!
                  Ilya Shaikovsky Master

                  armen2010, one more time, please show me your web-inf/lib directory listing.

                  Sure it's possible to use such configuration.

                  • 7. Re: Please Help! Setup richfaces!
                    Armen Arzumanyan Newbie

                    Here is my libraries that added in application-

                    Facelets 1.1.12
                    JSF 1.2
                    JSTL 1.1
                    Facelets 1.1.12 JSF RI
                    Facelets 1.1.12 MyFaces

                    Also in web-inf/lib directory added following files

                    el-api.jar
                    el-ri.jar
                    jsf-facelets.jar
                    jstl.jar
                    standart.jar

                    on glassfish simple application working nice but when I change server to tomcat 6





                    
                    type Exception report
                    
                    message
                    
                    description The server encountered an internal error () that prevented it from fulfilling this request.
                    
                    exception
                    
                    org.apache.jasper.JasperException: Exception in JSP: /forward.jsp:1
                    
                    1: <jsp:forward page="index.jsf"/>
                    
                    
                    Stacktrace:
                     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
                     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
                     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
                     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
                     javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    
                    root cause
                    
                    java.lang.UnsupportedOperationException
                     javax.faces.application.Application.getELResolver(Application.java:455)
                     com.sun.faces.context.FacesContextImpl.getELContext(FacesContextImpl.java:174)
                     javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:888)
                     com.sun.faces.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:375)
                     com.sun.facelets.FaceletViewHandler.createView(FaceletViewHandler.java:777)
                     org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:144)
                     org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
                     javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                     org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:688)
                     org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)
                     org.apache.jsp.forward_jsp._jspService(forward_jsp.java:43)
                     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
                     javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
                     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
                     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
                     javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    
                    
                    



                    Thank you for your answers, can you provide me how can I run jsf/facelets application under tomcat, what components I need?


                    • 8. Re: Please Help! Setup richfaces!
                      Ilya Shaikovsky Master

                      you should remove el-* libraries working with tomcat 6

                      • 9. Re: Please Help! Setup richfaces!
                        Armen Arzumanyan Newbie

                        I have deleted, but it did not help,


                        browser show 404 error


                        HTTP Status 404 - /jsffacelets/
                        
                        type Status report
                        
                        message /jsffacelets/
                        
                        description The requested resource (/jsffacelets/) is not available.
                        
                        


                        • 10. Re: Please Help! Setup richfaces!
                          Ilya Shaikovsky Master

                          paste an exception that appears while server start.

                          • 11. Re: Please Help! Setup richfaces!
                            Sergey Smirnov Master

                            Download the richfaces-demo war files for Tomcat 6 and JavaEE5 container and explore the different between jar files set by yourself. Follow the link below